This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: backtrace C-API


On Fri, Apr 18, 2003 at 02:33:27PM +0200, Gerrit Bruchhäuser wrote:

Hello,

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
glibc-supported platform.

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.


Andrew



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