From: Daniel Jacobowitz <drow@false.org>
To: "Maciej W. Rozycki" <macro@mips.com>
Cc: gdb-patches@sourceware.org, "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: mi*-watch.exp: Test both hardware and software watchpoints
Date: Fri, 14 Sep 2007 14:24:00 -0000 [thread overview]
Message-ID: <20070914142430.GA28551@caradoc.them.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0709141505100.23291@perivale.mips.com>
On Fri, Sep 14, 2007 at 03:12:51PM +0100, Maciej W. Rozycki wrote:
> On Tue, 11 Sep 2007, Daniel Jacobowitz wrote:
>
> > It isn't generally sufficient, either. It's implemented on PowerPC
> > but the test still fails. The frame pointer is corrupted one
> > instruction before the epilogue is detected, and I couldn't come up
> > with a reasonable way of making it work.
>
> Hmm, extending the range of the epilogue? Just an obvious thought -- I
> have no competence with PowerPC.
I don't think it's safe to extend the epilogue arbitrarily - we can't
recognize the instruction because we have no way to query where the
frame pointer is at this point. We might extend it arbitrarily far
backwards if we're not careful.
> > In principle, I think so, but give it a day or two to see if anyone
> > objects. How about xfailing the out of scope test for software
> > watchpoints?
>
> Well, should I take it as a declaration of no intent to fix them?
I don't intend to fix it right now, anyway. And I really do not like
leaving failing tests. Every few years, I try to reduce the failures
for a couple of platforms to zero. I'm going to do it again after I
finish with multi-threaded watchpoints (next week hopefully; patches
coming this weekend).
I think the right fix is going to have to involve GCC. It should emit
correct unwind info for the epilogue; even without also adding the
epilogue markers to the line table, correct unwind info will solve
this problem 99% of the time.
> + set old_prefix $pf_prefix
> + set pf_prefix "$pf_prefix $type: "
Is there a double space here? IIUC pf_prefix will be something like
"gdb.mi/mi-watch.exp: ".
Otherwise OK to commit.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-09-14 14:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 15:42 Maciej W. Rozycki
2007-09-11 16:19 ` Daniel Jacobowitz
2007-09-14 14:13 ` Maciej W. Rozycki
2007-09-14 14:24 ` Daniel Jacobowitz [this message]
2007-09-14 15:28 ` Maciej W. Rozycki
2007-09-14 15:40 ` Daniel Jacobowitz
2007-09-14 16:25 ` Maciej W. Rozycki
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=20070914142430.GA28551@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=macro@linux-mips.org \
--cc=macro@mips.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