public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: Ubuntu 8.04 (LTS) gdb is friends with new toolchain
@ 2008-11-11 19:21 Sergei Gavrikov
  0 siblings, 0 replies; only message in thread
From: Sergei Gavrikov @ 2008-11-11 19:21 UTC (permalink / raw)
  To: eCos patches list

Hello,

I have no meet the 'old' gdb issue for synthetic target on Ubuntu 8.04
with new eCosCentric GCC. I did try just a few runs of ecos test under
gdb. It seemed for me, it just works now.


SYNOPSYS

cd /tmp && mkdir -p foo && cd foo
ecosconfig new linux
ecosconfig import /dev/stdin <<_eof
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {user_value i386-elf}
_eof
ecosconfig tree
make
sed -ie 's@ libgcc_eh.a@@' install/lib/target.ld
make tests

cat >.gdbinit<<_eof
set confirm 0
b cyg_start
b cyg_test_exit
run
c
q
_eof

gdb -q install/tests/kernel/current/tests/kthread0
Breakpoint 1 at 0x10000bf: file /home/sg/repo/ecos/packages/kernel/current/tests/kthread0.c, line 109.
Breakpoint 2 at 0x1002e1e: file /home/sg/repo/ecos/packages/infra/current/src/tcdiag.cxx, line 263.

Breakpoint 1, cyg_start ()
    at /home/sg/repo/ecos/packages/kernel/current/tests/kthread0.c:109
109	}
Current language:  auto; currently c
PASS:<Kernel C API Thread 0 OK>
EXIT:<done>

Breakpoint 2, cyg_test_exit ()
    at /home/sg/repo/ecos/packages/infra/current/src/tcdiag.cxx:263
263	    CYGHWR_TEST_PROGRAM_EXIT();
Current language:  auto; currently c++


ENVIRONMENT

lsb_release -a ;# Ubuntu 8.04 (LTS) daily updated
--------------
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 8.04.1
Release:	8.04
Codename:	hardy


ecosconfig --version
--------------------
ecosconfig 2.net (Nov 11 2008 20:05:06)
Copyright (c) 2002 Red Hat, Inc.
Copyright (c) 2004-2008 eCosCentric Limited


i386-elf-gcc -v
---------------
Using built-in specs.
Target: i386-elf
Configured with: /home/test/src/toolchains/gcc/gcc-4.3.2/configure -v --target=i386-elf --prefix=/home/test/build/toolchains/i386-elf/tools --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-__cxa_atexit --enable-threads --with-bugurl=http://bugs.ecos.sourceware.org/ --with-pkgversion='eCosCentric GNU tools 4.3.2-sw' --with-gmp=/opt/gmp-4.2.2 --with-mpfr=/opt/mpfr-2.3.0
Thread model: single
gcc version 4.3.2 (eCosCentric GNU tools 4.3.2-sw)


gdb --version
-------------
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".


Thank you!

Sergei

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-11 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-11 19:21 FYI: Ubuntu 8.04 (LTS) gdb is friends with new toolchain Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).