From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc, frame] Move the corrupt frame checks earlier
Date: Sun, 20 Aug 2006 16:48:00 -0000 [thread overview]
Message-ID: <200608201432.k7KEWeKR010677@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20060819155654.GB25238@nevyn.them.org> (message from Daniel Jacobowitz on Sat, 19 Aug 2006 11:56:54 -0400)
> Date: Sat, 19 Aug 2006 11:56:54 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> This patch is a follow-on to the unwind_stop_reason patch, although not
> actually dependent. It moves the frame-went-inner and frame-same-ID
> checks earlier in the backtrace process. Although they move down
> in the function, they also check PREV rather than THIS.
>
> The benefit of doing this is that we display the stop reason before,
> rather than after, the frame we've decided is corrupt. For instance,
> suppose we have two frames with the same ID. That means they have the
> same CFA and the same function. In other words, the same stack frame.
> So the second backtrace entry will be a duplicate of the first. There's
> no added value in displaying it, and logically it doesn't need to exist
> on the frame chain.
Sorry it's not clear to me what exactly the effect is. Does it make
frames disappear that are there now? I wouldn't like that, since it
the past I clearly remember getting useful information out of the last
frame printed in a bad backtrace.
Perhaps you can give an example of the old & new behaviour?
Mark
next prev parent reply other threads:[~2006-08-20 14:33 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 [this message]
2006-08-21 11:07 ` Daniel Jacobowitz
2006-08-22 20:32 ` Mark Kettenis
2006-08-22 21:04 ` Daniel Jacobowitz
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=200608201432.k7KEWeKR010677@elgar.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=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