public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28621] New: Watchpoint followed by catchpoint misreports watchpoint
@ 2021-11-23 17:36 pedro at palves dot net
2021-11-23 17:36 ` [Bug gdb/28621] " pedro at palves dot net
2022-03-21 17:32 ` pedro at palves dot net
0 siblings, 2 replies; 3+ messages in thread
From: pedro at palves dot net @ 2021-11-23 17:36 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28621
Bug ID: 28621
Summary: Watchpoint followed by catchpoint misreports
watchpoint
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: pedro at palves dot net
Target Milestone: ---
If GDB reports a watchpoint hit, and then the next event is a catchpoint, GDB
mistakenly tells the user that the watchpoint triggered.
Vis, using foll-fork.c:
(gdb) start
...
(gdb) awatch v
Hardware access (read/write) watchpoint 2: v
(gdb) catch fork
Catchpoint 3 (fork)
(gdb) c
Continuing.
Hardware access (read/write) watchpoint 2: v
Old value = 0
New value = 5
main () at gdb.base/foll-fork.c:16
16 pid = fork ();
(gdb)
Continuing.
Hardware access (read/write) watchpoint 2: v <<<<
<<<< these lines are
spurious
Value = 5 <<<<
Catchpoint 3 (forked process 1712369), arch_fork (ctid=0x7ffff7fa4810) at
arch-fork.h:49
49 arch-fork.h: No such file or directory.
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/28621] Watchpoint followed by catchpoint misreports watchpoint
2021-11-23 17:36 [Bug gdb/28621] New: Watchpoint followed by catchpoint misreports watchpoint pedro at palves dot net
@ 2021-11-23 17:36 ` pedro at palves dot net
2022-03-21 17:32 ` pedro at palves dot net
1 sibling, 0 replies; 3+ messages in thread
From: pedro at palves dot net @ 2021-11-23 17:36 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28621
Pedro Alves <pedro at palves dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |pedro at palves dot net
--- Comment #1 from Pedro Alves <pedro at palves dot net> ---
I've got a patch.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/28621] Watchpoint followed by catchpoint misreports watchpoint
2021-11-23 17:36 [Bug gdb/28621] New: Watchpoint followed by catchpoint misreports watchpoint pedro at palves dot net
2021-11-23 17:36 ` [Bug gdb/28621] " pedro at palves dot net
@ 2022-03-21 17:32 ` pedro at palves dot net
1 sibling, 0 replies; 3+ messages in thread
From: pedro at palves dot net @ 2022-03-21 17:32 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28621
Pedro Alves <pedro at palves dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Pedro Alves <pedro at palves dot net> ---
Fix merged:
commit d37e084783a04c63ae137f953ebdb58bb6f7f704
Author: Pedro Alves <pedro@palves.net>
AuthorDate: Tue Nov 23 14:19:07 2021 +0000
Commit: Pedro Alves <pedro@palves.net>
CommitDate: Mon Mar 21 17:27:17 2022 +0000
Watchpoint followed by catchpoint misreports watchpoint (PR gdb/28621)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-21 17:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 17:36 [Bug gdb/28621] New: Watchpoint followed by catchpoint misreports watchpoint pedro at palves dot net
2021-11-23 17:36 ` [Bug gdb/28621] " pedro at palves dot net
2022-03-21 17:32 ` pedro at palves dot net
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).