This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/13929] New: Watchpoint missed on next


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]