This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/13929] New: Watchpoint missed on next
- From: "eager at eagercon dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 29 Mar 2012 17:06:41 +0000
- Subject: [Bug breakpoints/13929] New: Watchpoint missed on next
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13929
Bug #: 13929
Summary: Watchpoint missed on next
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: eager@eagercon.com
Classification: Unclassified
Test case gdb.base/gdb11531 fails on x86_64, Linux-2.6.32 (CentOS 6.0).
When "next"ing over an assignment which should trip a watchpoint, the
watchpoint is not seen.
Test case:
struct rec
{
int x;
double y;
int z;
};
static struct rec myrec;
int
main ()
{
myrec.x = 5;
myrec.y = 3.4;
myrec.z = 56;
myrec.x = 78;
return myrec.x;
}
(gdb) break main
(gdb) run
-- stops at myrec.x = 5;
(gdb) watch myrec.x
(gdb) next
-- assignment of myrec.x not reported
See also http://sourceware.org/bugzilla/show_bug.cgi?id=11531.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.