public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/12312] New: repeated watchpoints hits with breakpoint always-inserted
@ 2010-12-12  7:55 jan.kratochvil at redhat dot com
  2011-12-14 21:14 ` [Bug breakpoints/12312] " jan.kratochvil at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jan.kratochvil at redhat dot com @ 2010-12-12  7:55 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: repeated watchpoints hits with breakpoint
                    always-inserted
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
              Host: x86_64-fedora14-linux-gnu
            Target: x86_64-fedora14-linux-gnu


There was a fix:
[patch 1/4] Fix hw watchpoints #2: [x86*] repeated rwatch output
http://sourceware.org/ml/gdb-patches/2009-11/msg00350.html

which fixes it for breakpoint always-inserted off.  But for breakpoint
always-inserted on it still broken:

echo 'int a;f(){}main(){a=0;f();}'|gcc -g -x c -;gdb -q -nx -ex 'set breakpoint
always-inserted on' ./a.out -ex start -ex 'awatch a' -ex 'b f' -ex c -ex c
[...]
Continuing.
Hardware access (read/write) watchpoint 2: a
Value = 0
0x0000000000400488 in main () at <stdin>:1
1       in <stdin>
Continuing.
Hardware access (read/write) watchpoint 2: a
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = bogus second hit
Value = 0
Breakpoint 3, f () at <stdin>:1
1       in <stdin>


In fact even in breakpoint always-inserted off the change is wrong as GDB may
stop without dealing with such event now, it may delay any event till the next
stop.
FYI bpstat evaluations vs. breakpoint hits
http://sourceware.org/ml/archer/2010-q4/msg00026.html
But I do not have a reproducer for it now.

-- 
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] 2+ messages in thread

* [Bug breakpoints/12312] repeated watchpoints hits with breakpoint always-inserted
  2010-12-12  7:55 [Bug breakpoints/12312] New: repeated watchpoints hits with breakpoint always-inserted jan.kratochvil at redhat dot com
@ 2011-12-14 21:14 ` jan.kratochvil at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-12-14 21:14 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-12-14 21:13:56 UTC ---
This is now fixed by Pedro's:

commit afcf6be9b342eb686fe502deb723f709554ee96c
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Dec 14 17:20:25 2011 +0000

    gdb/
    2011-12-14  Pedro Alves  <pedro@codesourcery.com>

        PR threads/10729

-- 
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] 2+ messages in thread

end of thread, other threads:[~2011-12-14 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-12  7:55 [Bug breakpoints/12312] New: repeated watchpoints hits with breakpoint always-inserted jan.kratochvil at redhat dot com
2011-12-14 21:14 ` [Bug breakpoints/12312] " jan.kratochvil at redhat 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).