This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/10679] New: replay mode should set can-use-hw-watchpoints 0
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 21 Sep 2009 13:47:04 -0000
- Subject: [Bug breakpoints/10679] New: replay mode should set can-use-hw-watchpoints 0
- Reply-to: sourceware-bugzilla at sourceware dot org
gdb -nx -ex 'set confirm no' -ex start -ex record -ex c -ex reverse-continue -ex
'watch j' -ex c ./loopsimple
GNU gdb (GDB) 7.0.50.20090921-cvs
[...]
No more reverse-execution history.
main () at loopsimple.c:6
6 for (i = 0; i < 1000; i++)
Hardware watchpoint 2: j
Watchpoint 2 deleted because the program has left the block in
which its expression is valid.
__libc_start_main (main=<value optimized out>, argc=<value optimized out>,
ubp_av=<value optimized out>, init=<value optimized out>,
fini=<value optimized out>, rtld_fini=<value optimized out>,
stack_end=0x7fffffffd5a8) at libc-start.c:252
252 exit (result);
(gdb) _
But this way it works:
gdb -nx -ex 'set confirm no' -ex start -ex record -ex c -ex reverse-continue -ex
'set can-use-hw-watchpoints 0' -ex 'watch j' -ex c ./loopsimple
GNU gdb (GDB) 7.0.50.20090921-cvs
[...]
No more reverse-execution history.
main () at loopsimple.c:6
6 for (i = 0; i < 1000; i++)
Watchpoint 2: j
Watchpoint 2: j
Old value = 0
New value = 1
main () at loopsimple.c:6
6 for (i = 0; i < 1000; i++)
(gdb)
------------------------------------------------------------------------------
int
main (void)
{
int i, j;
for (i = 0; i < 1000; i++)
j = i;
return 0;
}
--
Summary: replay mode should set can-use-hw-watchpoints 0
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: breakpoints
AssignedTo: unassigned at sourceware dot org
ReportedBy: jan dot kratochvil at redhat dot com
CC: gdb-prs at sourceware dot org,teawater at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10679
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.