This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: GDB's stack trace.
- To: Patrick O'Grady <patrick at softprocess dot com>
- Subject: Re: [ECOS] GDB's stack trace.
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Fri, 21 Jan 2000 17:52:58 +0000
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.BSF.4.10.10001201759330.24644-100000@plasticgrape.com>
Patrick O'Grady wrote:
>
> Does anyone out there know what tells GDB that it's at the top of the
> stack during a back-trace? Whenever I 'bt' a stopped thread, I get
> legtimate stack data followed by a bunch of junk... somehow GDB gets told
> when the stack ends--anyone know how this is done? Thanks in advance..
We've had problems sometimes with this, mostly due to the compiler
optimizing the function prolog. Which target and tools version (gcc, gdb and
binutils) are you using?
Jifl