This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Ubuntu 8.04 (LTS) gdb is friends with new toolchain


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



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]