This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: debuging using gdb-stub
- To: yyl <ylyuan at csrd dot org>
- Subject: Re: [ECOS] debuging using gdb-stub
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Sat, 29 Apr 2000 17:07:27 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <006501bfb178$27e25740$2901a8c0@21>
> yyl wrote:
>
> Hi I debug a program running on a pc target using i386-elf-gdb.The host
> platform is ecos1.3.1 on RedHat linux6.1,and the target is pc.
> In the beginning of the program,I inserted two functions:
> set_debug_traps() breakpoint().
> Next I wanted to watch the value of a variant,but some commands I
> used all reported:no symbol file.
> Thanks!
You don't need to add calls to the stub yourself if you want to include
stubs in your configuration. If you are using linux, then you do this by
editting the ecos.ecc file, finding the option
CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS, uncommenting the "user_value" field and
setting it to 1. Similarly set CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT to 1 and
CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT to 0. Doing an "ecosconfig check" should
report no errors. If so, then you can use "ecosconfig tree" and then
rebuild the eCos library with "make".
If you have difficulties, the documentation describes how changing
configuration options works in detail.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault