From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8863 invoked by alias); 2 Dec 2003 20:44:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8814 invoked from network); 2 Dec 2003 20:44:53 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 2 Dec 2003 20:44:53 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ARHO7-0003jT-HJ; Tue, 02 Dec 2003 15:44:51 -0500 Date: Tue, 02 Dec 2003 20:44:00 -0000 From: Daniel Jacobowitz To: Mihai Basa Cc: gdb@sources.redhat.com Subject: Re: Auto-deleting watchpoints Message-ID: <20031202204451.GA14313@nevyn.them.org> Mail-Followup-To: Mihai Basa , gdb@sources.redhat.com References: <3FCC0BA0@bodkin.nuigalway.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FCC0BA0@bodkin.nuigalway.ie> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00025.txt.bz2 On Tue, Dec 02, 2003 at 08:40:23PM +0000, Mihai Basa wrote: > Greetings all! > > I'd like to question a certain behaviour of gdb, and I quote from the > man(ual): > > "GDB automatically deletes watchpoints that watch local (automatic) > variables, or expressions that involve such variables, when they go out > of scope, that is, when the execution leaves the block in which these > variables were defined." > > This includes deleting local watchpoints even when the program makes a call to > a library function (say, sqrt()). I believe this auto-deletion _severly_ > reduces the practicality of watchpoints, because they simply go away on the > first call they hit! That is not what is supposed to happen. The watchpoint should stay until the function containing the local variable has exited. If you have a testcase where that doesn't work, file a bug report (and try the latest version of GDB), please. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer