From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedro@codesourcery.com (Pedro Alves)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] Fix register cache invalidation
Date: Mon, 20 Jul 2009 15:14:00 -0000 [thread overview]
Message-ID: <200907201507.n6KF7s5S005063@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <200907201435.07453.pedro@codesourcery.com> from "Pedro Alves" at Jul 20, 2009 02:35:07 PM
Pedro Alves wrote:
> On Tuesday 14 July 2009 15:59:28, Ulrich Weigand wrote:
>
> > when testing the Cell/B.E. combined debugger patches I ran into a situation
> > where registers_changed was not called soon enough.
> >
> > A while ago I proposed a patch to simplify register invalidation (as part of
> > a infrun cleanup series):
> > http://sourceware.org/ml/gdb-patches/2008-12/msg00120.html
> > This cleanup actually fixes the combined debugger problem as well.
>
> Curious. Are we sure we're not hidding some other bug then?
Hmm, interestingly enough I cannot reproduce the problem I was seeing with
the current combined debugger patches ...
The problem I had was basically that during adjust_pc_after_break I was
getting the wrong architecture (and thus the wrong decr_pc_after_break
value) because the old architecture had been cached, and no registers_changed
call happened in between.
As the problem disappeared when applying the cleanup patch (which I'd
intended to do anyway), I didn't investigate in more detail. Unfortunately,
the underlying problem seems to have gone away anyway in the meantime ...
> > At the time, Pedro pointed out that parts of that patch weren't safe in the
> > non-stop case. The version below omits those parts, and only changes code
> > to simplify calling registers_changed and resetting waiton_ptid.
>
> > Tested on powerpc64-linux with no regressions.
> > Any comments? I'd like to commit this in a couple of days.
>
> I like it!
OK, thanks for looking at the patch!
I've checked this in now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2009-07-20 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 20:22 Ulrich Weigand
2009-07-20 13:58 ` Pedro Alves
2009-07-20 15:14 ` Ulrich Weigand [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=200907201507.n6KF7s5S005063@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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