From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 525343858404; Tue, 23 Nov 2021 17:36:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525343858404 From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/28621] New: Watchpoint followed by catchpoint misreports watchpoint Date: Tue, 23 Nov 2021 17:36:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 17:36:23 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28621 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, G= DB 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 =3D 0 New value =3D 5 main () at gdb.base/foll-fork.c:16 16 pid =3D fork (); (gdb) Continuing. Hardware access (read/write) watchpoint 2: v <<<< <<<< these lines are spurious Value =3D 5 <<<< Catchpoint 3 (forked process 1712369), arch_fork (ctid=3D0x7ffff7fa4810) = at arch-fork.h:49 49 arch-fork.h: No such file or directory. (gdb) --=20 You are receiving this mail because: You are on the CC list for the bug.=