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