From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Fix frame-issue with watchpoints...
Date: Fri, 06 Oct 2006 01:20:00 -0000 [thread overview]
Message-ID: <20061006012018.GA19918@nevyn.them.org> (raw)
In-Reply-To: <20061006005009.GA986@adacore.com>
On Thu, Oct 05, 2006 at 05:50:09PM -0700, Joel Brobecker wrote:
> The issue in our case is that "current_frame" is NULL too, probably
> because we never needed it before in our case (just finished off
> single-stepping out of the breakpoint and immediately getting ready
> to resume) and therefore never set it to a proper value.
This is 100% bogus. If we leave this code at all, we should absolutely
do this:
> One way to bandaid this, probably along the lines that Andrew was
> trying to do (try to recover from a situation that should not happen),
> is to replace "current_frame" by get_current_frame().
Or just kill it. As far as I can see though, this:
> However, I'm thinking that the real culprit is block_innermost_frame
> which called this function with a NULL frame, which it's not supposed
> to do. So I rewrote the loop to start from the outermost frame instead
> of a NULL frame, and then work its way up the frame stack...
is also right. Except that you really scared me here: you are actually
starting from the _innermost_ frame, not the _outermost_.
> 2006-10-05 Joel Brobecker <brobecker@adacore.com>
>
> * blockframe.c (block_innermost_frame): Rewrite frame search logic.
>
> Tested on x86-linux, no regression. A new testcase to be submitted soon.
> OK to apply?
OK.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-10-06 1:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-06 0:50 Joel Brobecker
2006-10-06 1:20 ` Daniel Jacobowitz [this message]
2006-10-06 2:03 ` Joel Brobecker
2006-10-06 17:34 ` Joel Brobecker
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=20061006012018.GA19918@nevyn.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.com \
/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