From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17396 invoked by alias); 24 Oct 2006 04:32:31 -0000 Received: (qmail 17388 invoked by uid 22791); 24 Oct 2006 04:32:30 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 24 Oct 2006 04:32:28 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-142-7.inter.net.il [80.230.142.7]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EZN69570 (AUTH halo1); Tue, 24 Oct 2006 06:32:07 +0200 (IST) Date: Tue, 24 Oct 2006 04:32:00 -0000 Message-Id: From: Eli Zaretskii To: Jim Blandy CC: drow@false.org, rodney.bates@wichita.edu, gdb@sourceware.org In-reply-to: (message from Jim Blandy on Mon, 23 Oct 2006 15:02:30 -0700) Subject: Re: breakpoint for accessing memory location Reply-to: Eli Zaretskii References: <4537DBC6.1030807@hccnet.nl> <20061019201214.GA32332@nevyn.them.org> <4537DEDC.5000008@hccnet.nl> <453A3758.5090602@wichita.edu> <453A6D1D.1080009@wichita.edu> <453B8C22.3010206@wichita.edu> <20061022172431.GA15887@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00223.txt.bz2 > Cc: Daniel Jacobowitz , rodney.bates@wichita.edu, gdb@sourceware.org > From: Jim Blandy > Date: Mon, 23 Oct 2006 15:02:30 -0700 > > int > foo (void) > { > ...; > { > int b = 10; > /* X */ > ...; > } > /* Y */ > ...; > } > > If I set a watchpoint on b at '/* X */', then that watchpoint should > be deleted at soon as we leave the local block in which it is > defined. Does the debug info tell us enough to do that?