gdb stack trace problems (Addendum)
Stan Shebs
shebs@apple.com
Mon May 9 05:30:00 GMT 2005
Christopher Faylor wrote:
>
>If a function doesn't set up a frame pointer and there is no debugging
>information available, how would one derive a stack frame? I could
>imagine a really complicated "search the stack" technique but I can't
>see how it would ever be foolproof.
>
That's where GDB hacking just starts to get interesting. :-) Yes,
it's complicated and potentially expensive too, because you may have
to transfer a lot of bytes. The mips has something similar for
function starts, and a "heuristic-fence-post" variable to control
how hard to work at it.
Stan
More information about the Gdb
mailing list