This is the mail archive of the
mailing list for the GDB project.
Re: backtrace C-API
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Gerrit Bruchhäuser <gbruchhaeuser at gmx dot de>,gdb at sources dot redhat dot com
- Date: Mon, 21 Apr 2003 17:04:34 -0400
- Subject: Re: backtrace C-API
- References: <firstname.lastname@example.org> <20030418133908.GB8316@nevyn.them.org>
On Fri, Apr 18, 2003 at 02:33:27PM +0200, Gerrit Bruchhäuser wrote:
is there any C-API function in libgdb.a (or some other library) which
returns a call stack (something 'bt' like)?
No; but you might find backtrace() useful if you're on a
But there probably should. How hard is it to create a `target-self'
that uses local memory, and a jump-buf for registers? The tricky bit, I
see, is the symbol table assuming a single global structure.