This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: expanding backtrace
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: Cameron Stone <camerons at cse dot unsw dot edu dot au>, gdb at sourceware dot org
- Date: Wed, 28 Jun 2006 11:09:43 +1200
- Subject: Re: expanding backtrace
- References: <200606271825.20501.camerons@cse.unsw.edu.au> <44A14571.20003@st.com>
> You could write something like
>
> while $pc != 0
I don't think that works.
> or
>
> while $sp <= $topofmem
>
> It depends how your backtraces end.
If you mean:
(gdb) start
...
(gdb) set $topofmem=$sp
and use "$sp < $topofmem" for the loop condition, then that looks like a good
idea.
--
Nick http://www.inet.net.nz/~nickrob