From: Andrew STUBBS <andrew.stubbs@st.com>
To: Cameron Stone <camerons@cse.unsw.edu.au>
Cc: gdb@sourceware.org
Subject: Re: expanding backtrace
Date: Thu, 29 Jun 2006 02:27:00 -0000 [thread overview]
Message-ID: <44A14571.20003@st.com> (raw)
In-Reply-To: <200606271825.20501.camerons@cse.unsw.edu.au>
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.
next prev parent reply other threads:[~2006-06-27 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-28 3:05 Cameron Stone
2006-06-28 14:02 ` Daniel Jacobowitz
2006-06-29 2:27 ` Andrew STUBBS [this message]
2006-06-29 3:48 ` Nick Roberts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44A14571.20003@st.com \
--to=andrew.stubbs@st.com \
--cc=camerons@cse.unsw.edu.au \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox