expanding backtrace
Andrew STUBBS
andrew.stubbs@st.com
Thu Jun 29 02:27:00 GMT 2006
Cameron Stone wrote:
> I'm trying to write a script to print an expanded backtrace. It's basically:
>
> while loop_condition
> print frame
> print local variables
> print list (context)
> up-silently
> end
>
> However, I can't figure out how to implement the loop condition. All the
> functions in the manual are about how to print that information, but can't
> figure out how to get it into a variable or something that can be used to
> break the loop.
>
> Apologies if this has already been dealt with. I couldn't find it in the list
> archives.
You could write something like
while $pc != 0
or
while $sp <= $topofmem
It depends how your backtraces end.
More information about the Gdb
mailing list