From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10522 invoked by alias); 20 Nov 2008 15:37:18 -0000 Received: (qmail 10400 invoked by uid 22791); 20 Nov 2008 15:37:17 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Nov 2008 15:36:18 +0000 Received: (qmail 25597 invoked from network); 20 Nov 2008 15:36:15 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 Nov 2008 15:36:15 -0000 From: Vladimir Prus To: "Srinath Avadhanula" Subject: Re: Variables created with -var-create going out of scope unexpectedly? Date: Thu, 20 Nov 2008 15:37:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb@sources.redhat.com References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811201836.10961.vladimir@codesourcery.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00128.txt.bz2 On Thursday 20 November 2008 17:32:21 Srinath Avadhanula wrote: > Hi Volodya, > > On Thu, Nov 20, 2008 at 8:59 AM, Vladimir Prus > wrote: > >> first time the breakpoint is hit and then do "-var-update 1 *" each > >> subsequent time the break-point is hit, I only see 'in_scope="true"' > >> the two times when foo() is reached with exactly the same stack. Is > >> this expected? Is there an equivalent of gdb's "display" command for > >> GDB/MI? > > > > GDB/MI documentation in CVS HEAD describes this. > > > > Thanks for the info! Sorry for my ignorance, but I cannot seem to > figure out how to get the CVS HEAD of the GDB/MI documentation. Could > you please point me to it? I tried downloading a few things from the > GDB web-site, but couldn't figure out the latest version... > > Also, if > > http://sourceware.org/gdb/onlinedocs/gdb_25.html#SEC413 > > is the latest version, it doesn't seem to make any special mention of > -var-create with respect to going out of scope... In general, you can get CVS HEAD sources using instructions at: http://www.gnu.org/software/gdb/current/ But I've just realized the patch is not actually checked in yet. Please see: http://permalink.gmane.org/gmane.comp.gdb.patches/44757 for a doc patch -- search for "floating" varobjs. - Volodya