public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/13929] New: Watchpoint missed on next
@ 2012-03-29 17:07 eager at eagercon dot com
  2012-03-29 17:14 ` [Bug breakpoints/13929] " eager at eagercon dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: eager at eagercon dot com @ 2012-03-29 17:07 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-30 13:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 17:07 [Bug breakpoints/13929] New: Watchpoint missed on next eager at eagercon dot com
2012-03-29 17:14 ` [Bug breakpoints/13929] " eager at eagercon dot com
2012-03-29 17:19 ` palves at redhat dot com
2012-03-30 13:44 ` [Bug breakpoints/13929] Watchpoint missed if at breakpoint eager at eagercon dot com
2012-03-30 13:48 ` eager at eagercon dot com

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).