Re: backtrace C-API

Andrew Cagney
2003-04-21T21:05:14Z

> 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