Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Subject: Re: [rfc, frame] Move the corrupt frame checks earlier
Date: Tue, 22 Aug 2006 21:04:00 -0000	[thread overview]
Message-ID: <20060822204925.GA32108@nevyn.them.org> (raw)
In-Reply-To: <200608222022.k7MKMO9q004779@elgar.sibelius.xs4all.nl>

On Tue, Aug 22, 2006 at 10:22:24PM +0200, Mark Kettenis wrote:
> I don't think this is a small difference.  I've certainly made use of
> it in the past, for both debugging stack corruption in a program being
> and tracking down problems with gdb's unwinders.  Even if you know
> where the saved registers are, you have to remember how big they are
> before you can print them.

I'm not sure what my opinion is on this one any more :-(

> Well, my feeling is that they are part of the backtrace and that it is
> a good thing to show that a backtrace it corrupt.

Well sure.  That's what motivated the previous (stop reason) patch:
notify the user that the backtrace is corrupt, and hint them where
to look for more information.  I could add a manual section near
"backtrace" which referenced the prefix for backtrace errors.
I think this is actually more useful than the extra frame, for a
bunch of reasons - like the "don't show too much information" we
just discussed.

For instance, here's another option that I like.  We could show saved
register values in info frame in addition to addresses.  I think that
would actually be convenient - I'd certainly use it, the first thing I
do after info frame is usually a bunch of x/ commands.  But I'm mildly
worried about what it will do to your SPARC64 example, at the same time.
We do paginate, though, and most people use the GDB console in
something with a scrollback buffer...

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2006-08-22 20:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-20 13:10 Daniel Jacobowitz
2006-08-20 16:48 ` Mark Kettenis
2006-08-21 11:07   ` Daniel Jacobowitz
2006-08-22 20:32     ` Mark Kettenis
2006-08-22 21:04       ` Daniel Jacobowitz [this message]

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=20060822204925.GA32108@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@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