From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14679 invoked by alias); 21 Sep 2009 13:47:05 -0000 Received: (qmail 14617 invoked by uid 48); 21 Sep 2009 13:47:04 -0000 Date: Mon, 21 Sep 2009 13:47:00 -0000 From: "jan dot kratochvil at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20090921134703.10679.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug breakpoints/10679] New: replay mode should set can-use-hw-watchpoints 0 X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00287.txt.bz2 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=, argc=, ubp_av=, init=, fini=, rtld_fini=, 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.