From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18611 invoked by alias); 24 Oct 2006 12:57:25 -0000 Received: (qmail 18603 invoked by uid 22791); 24 Oct 2006 12:57:25 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 24 Oct 2006 12:57:15 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GcLq9-0001Fu-5O; Tue, 24 Oct 2006 08:57:09 -0400 Date: Tue, 24 Oct 2006 12:57:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Jim Blandy , rodney.bates@wichita.edu, gdb@sourceware.org Subject: Re: breakpoint for accessing memory location Message-ID: <20061024125708.GA4762@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Jim Blandy , rodney.bates@wichita.edu, gdb@sourceware.org References: <453A3758.5090602@wichita.edu> <453A6D1D.1080009@wichita.edu> <453B8C22.3010206@wichita.edu> <20061022172431.GA15887@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00226.txt.bz2 On Tue, Oct 24, 2006 at 06:32:08AM +0200, Eli Zaretskii wrote: > > 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? Sometimes, but not reliably. We delete out of scope watchpoints partly by setting an appropriate breakpoint at the function return address, and there is no equivalent exit address for nested scopes. Another problem with watchpoints is that we don't support any kind of location lists for local variables; that's a similar problem. -- Daniel Jacobowitz CodeSourcery