public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Hannes Domani <ssbssa@yahoo.de>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Guinevere Larsen <blarsen@redhat.com>
Subject: Re: [PATCH v2] Fix hardware watchpoints in replay mode
Date: Tue, 21 Nov 2023 14:03:44 +0000 (UTC)	[thread overview]
Message-ID: <452419883.9918269.1700575424939@mail.yahoo.com> (raw)
In-Reply-To: <69c3cefe-78ed-8d03-f1b4-acd7fee3fe1a@redhat.com>

 Am Dienstag, 21. November 2023 um 13:52:42 MEZ hat Guinevere Larsen <blarsen@redhat.com> Folgendes geschrieben:

> On 20/11/2023 16:59, Hannes Domani wrote:
> >  Am Montag, 20. November 2023, 14:09:34 MEZ hat Guinevere Larsen <blarsen@redhat.com> Folgendes geschrieben:
> >
> >> On 14/09/2023 18:27, Hannes Domani via Gdb-patches wrote:
> >>> Changes introduced by commit 9e8915c6cee5c37637521b424d723e990e06d597
> >>> caused a regression that meant hardware watchpoint stops would not
> >>> trigger in reverse execution or replay mode.  This was documented in
> >>> PR breakpoints/21969.
> >>> The problem is that record_check_stopped_by_breakpoint always overwrites
> >>> record_full_stop_reason, thus loosing the TARGET_STOPPED_BY_WATCHPOINT
> >>> value which would be checked afterwards.
> >>>
> >>> This commit fixes that by checking if record_full_stop_reason is
> >>> TARGET_STOPPED_BY_BREAKPOINT and, if so, not overriding it.
> >>>
> >>> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21969
> >>> ---
> >> I have sent a review to this patch. Your spam filter must have catched
> >> it or something similar. If you can't find it, here's the link for the
> >> public inbox:
> >> https://inbox.sourceware.org/gdb-patches/2eb65a2d-aa80-5930-3033-bfd82baa2ed9@redhat.com/
> > I saw that, but it doesn't really make clear what I should do now.
> > And from what I can remember of our discussion on IRC, you wanted to wait if Pedro had anything to add.
> >
> Ah right, sorry, this last month has been pretty hectic, our
> conversation completely slipped my mind.

All right, I'll do that.


> I took a second, long look at record_check_stopped_by_breakpoint and
> convinced myself, I don't see why it should overwrite the reason if gdb
> is not stopped at a watchpoint. I would say send in a v3 with that
> solution instead, CC Pedro, and I'll give some time for him to react
> before approving the changes.
>
> Also, the changes you made to gdb.reverse/watch-reverse.exp should also
> be made on gdb.reverse/watch-precsave.exp, since it has the same problem
> that you identified with watch-reverse.

We also discussed this on IRC, it doesn't work for watch-precsave.exp because
restored recordings are handled like corefile targets, and there hardware watchpoints
are always disabled.
But I can mention this in the commit message as well.


Regards
Hannes

      reply	other threads:[~2023-11-21 14:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230914162732.2077-1-ssbssa.ref@yahoo.de>
2023-09-14 16:27 ` Hannes Domani
2023-09-15 10:09   ` Guinevere Larsen
2023-10-02 17:50   ` Hannes Domani
2023-11-01 13:57     ` Hannes Domani
2023-11-14 10:53       ` Hannes Domani
2023-11-20 13:09   ` Guinevere Larsen
2023-11-20 15:59     ` Hannes Domani
2023-11-21 12:52       ` Guinevere Larsen
2023-11-21 14:03         ` Hannes Domani [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=452419883.9918269.1700575424939@mail.yahoo.com \
    --to=ssbssa@yahoo.de \
    --cc=blarsen@redhat.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).