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

* [Bug breakpoints/13929] Watchpoint missed on next
  2012-03-29 17:07 [Bug breakpoints/13929] New: Watchpoint missed on next eager at eagercon dot com
@ 2012-03-29 17:14 ` eager at eagercon dot com
  2012-03-29 17:19 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: eager at eagercon dot com @ 2012-03-29 17:14 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13929

eager at eagercon dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-unknown-linux-gnu
               Host|                            |x86_64-unknown-linux-gnu
           See Also|                            |http://sourceware.org/bugzi
                   |                            |lla/show_bug.cgi?id=11531
              Build|                            |x86_64-unknown-linux-gnu

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

* [Bug breakpoints/13929] Watchpoint missed on next
  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
  3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2012-03-29 17:19 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13929

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-03-29 17:18:20 UTC ---
I think this is PR7143.  Try deleting the "main" breakpoint before "next"ing.

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

* [Bug breakpoints/13929] Watchpoint missed if at breakpoint
  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 ` eager at eagercon dot com
  2012-03-30 13:48 ` eager at eagercon dot com
  3 siblings, 0 replies; 5+ messages in thread
From: eager at eagercon dot com @ 2012-03-30 13:44 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13929

eager at eagercon dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Watchpoint missed on next   |Watchpoint missed if at
                   |                            |breakpoint

--- Comment #2 from eager at eagercon dot com 2012-03-30 13:44:01 UTC ---
The watchpoint not triggering at the same location as a breakpoint is exactly
the problem.

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

* [Bug breakpoints/13929] Watchpoint missed if at breakpoint
  2012-03-29 17:07 [Bug breakpoints/13929] New: Watchpoint missed on next eager at eagercon dot com
                   ` (2 preceding siblings ...)
  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
  3 siblings, 0 replies; 5+ messages in thread
From: eager at eagercon dot com @ 2012-03-30 13:48 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13929

eager at eagercon dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from eager at eagercon dot com 2012-03-30 13:45:05 UTC ---


*** This bug has been marked as a duplicate of bug 7143 ***

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