From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7226 invoked by alias); 4 May 2006 15:13:21 -0000 Received: (qmail 7216 invoked by uid 22791); 4 May 2006 15:13:21 -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; Thu, 04 May 2006 15:13:15 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FbfVt-0000Oa-RJ; Thu, 04 May 2006 11:13:10 -0400 Date: Thu, 04 May 2006 15:13:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Jim Ingham , Nick Roberts , gdb@sources.redhat.com Subject: Re: -var-update and address changes Message-ID: <20060504151309.GG32605@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Jim Ingham , Nick Roberts , gdb@sources.redhat.com References: <200605031002.21910.ghost@cs.msu.su> <20060504145046.GA32605@nevyn.them.org> <200605041911.48045.ghost@cs.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605041911.48045.ghost@cs.msu.su> User-Agent: Mutt/1.5.8i 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-05/txt/msg00027.txt.bz2 On Thu, May 04, 2006 at 07:11:46PM +0400, Vladimir Prus wrote: > This appears to work for a simple case of variable 'i' defined both in 'main' > and in 'foo' called from main. > > For the case where I'm stepping into 'bar' that has no 'i', -var-update > correctly says that 'i' has gone out of scope. However, after -exec-finish, > -var-update does not say that 'i' is not back in scope -- which would be nice > if "@-varobjs" are to be used for watches. I'm not terribly surprised by this. While I was fiddling with it I got the feeling that the in-and-out-of-scope code was not very robust. I'm not going to try to debug this any further now, though - do you want to? -- Daniel Jacobowitz CodeSourcery