This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
FYI: Ubuntu 8.04 (LTS) gdb is friends with new toolchain
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: eCos patches list <ecos-patches at ecos dot sourceware dot org>
- Date: Tue, 11 Nov 2008 21:20:13 +0200
- Subject: FYI: Ubuntu 8.04 (LTS) gdb is friends with new toolchain
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=KJjsQeswv8YiJBp4R95otMWSV0GZCyWQqouG1CataSM=; b=c7+AoJ5EL4p96LU8RId6DAlMn35Vo10JCmEH3Bphl8hLYF0y5OlQR6tws3T5yDTIiZ yPVI+J7bFoKmP0ff1x29QBIv1/7yEhw8anxYrTTr6fc6Whu45bBFpLA8hGCGEoSGdKr4 4o1L4WWHob54HMduRQ1PxlJ6e2fEsm69Ym0S0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=kT+Xv4JpMSGyHL7opOLzPNHEQk0NIbqeh5VOIS2UF4X/VeQ5Nc35Mx/wMm51PpR/aD 52Ct4KTMqjFBepQKbrO0KrW4VRyCVX18LAkKs3ib9326yN34nW6RHSpEDQkOlinCrSdv 98p0Rn85XJkWCnHPAvctKnP0wjZnKBTtOjTVM=
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