From: Hannes Domani <ssbssa@yahoo.de>
To: gdb-patches@sourceware.org
Subject: [PATCH] Fix hardware watchpoints in replay mode
Date: Wed, 13 Sep 2023 17:53:30 +0200 [thread overview]
Message-ID: <20230913155330.1558-1-ssbssa@yahoo.de> (raw)
In-Reply-To: <20230913155330.1558-1-ssbssa.ref@yahoo.de>
This regression was introduced by 9e8915c6cee5c37637521b424d723e990e06d597.
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.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21969
---
gdb/record-full.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdb/record-full.c b/gdb/record-full.c
index faf8b595d22..da785ef4b2a 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1382,7 +1382,9 @@ record_full_wait_1 (struct target_ops *ops,
/* check breakpoint */
tmp_pc = regcache_read_pc (regcache);
- if (record_check_stopped_by_breakpoint
+ if (record_full_stop_reason
+ != TARGET_STOPPED_BY_WATCHPOINT
+ && record_check_stopped_by_breakpoint
(aspace, tmp_pc, &record_full_stop_reason))
{
if (record_debug)
--
2.35.1
next parent reply other threads:[~2023-09-13 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230913155330.1558-1-ssbssa.ref@yahoo.de>
2023-09-13 15:53 ` Hannes Domani [this message]
2023-09-14 12:20 ` Guinevere Larsen
2023-09-14 16:08 ` Hannes Domani
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=20230913155330.1558-1-ssbssa@yahoo.de \
--to=ssbssa@yahoo.de \
--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).