Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Cameron Stone <camerons@cse.unsw.edu.au>
Cc: gdb@sourceware.org
Subject: Re: expanding backtrace
Date: Wed, 28 Jun 2006 14:02:00 -0000	[thread overview]
Message-ID: <20060627121742.GA7612@nevyn.them.org> (raw)
In-Reply-To: <200606271825.20501.camerons@cse.unsw.edu.au>

On Tue, Jun 27, 2006 at 06:25:19PM +1000, 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.

You can't; the GDB CLI just doesn't support this sort of thing. 
However, I'm vaguely hopeful that we'll have better scripting support
in time for the next release.

"while 1" might work, since the last "up" will raise an error.

"bt full" handles the frame and local variables already, btw, but I
don't think it lists.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-06-27 12:17 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 [this message]
2006-06-29  2:27 ` Andrew STUBBS
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=20060627121742.GA7612@nevyn.them.org \
    --to=drow@false.org \
    --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