From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31259 invoked by alias); 26 Jul 2010 21:03:53 -0000 Received: (qmail 31240 invoked by uid 48); 26 Jul 2010 21:03:52 -0000 Date: Mon, 26 Jul 2010 21:03:00 -0000 Message-ID: <20100726210352.31239.qmail@sourceware.org> From: "dragos dot tatulea at gmail dot com" To: gdb-prs@sourceware.org In-Reply-To: <20090916175922.10645.jan.kratochvil@redhat.com> References: <20090916175922.10645.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug breakpoints/10645] Watchpoints on unreadable memory need no singlestepping 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: 2010-q3/txt/msg00100.txt.bz2 ------- Additional Comments From dragos dot tatulea at gmail dot com 2010-07-26 21:03 ------- This patch: http://sourceware.org/ml/gdb-patches/2009-11/msg00429.html seems to change the behavior of watching an invalid area. Here's what happens now: GNU gdb (GDB) 7.0.50.20100131-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /media/a/gdb/bugzilla/10645/simple...done. (gdb) start Temporary breakpoint 1 at 0x400478: file simple.c, line 4. Starting program: /media/a/gdb/bugzilla/10645/simple Temporary breakpoint 1, main () at simple.c:4 4 i = 1; (gdb) set debug infrun 1 (gdb) watch *p Hardware watchpoint 2: *p (gdb) c Continuing. infrun: clear_proceed_status_thread (process 13517) infrun: proceed (addr=0xffffffffffffffff, signal=144, step=0) infrun: resume (step=0, signal=0), trap_expected=0 infrun: wait_for_inferior (treat_exec_as_sigtrap=0) infrun: target_wait (-1, status) = infrun: 13517 [process 13517], infrun: status->kind = stopped, signal = SIGTRAP infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0x400498 infrun: stopped by watchpoint infrun: stopped data address = 0x600840 infrun: BPSTAT_WHAT_STOP_NOISY infrun: stop_stepping Hardware watchpoint 2: *p Old value = New value = -443987883 main () at simple.c:7 7 return 0; There's no single stepping anymore (at least for this particular case). Need to investigate why. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10645 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.