From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9043 invoked by alias); 6 Jan 2007 10:39:54 -0000 Received: (qmail 9032 invoked by uid 22791); 6 Jan 2007 10:39:53 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 06 Jan 2007 10:39:48 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-195-26.inter.net.il [83.130.195.26]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id GSV37830 (AUTH halo1); Sat, 6 Jan 2007 12:39:42 +0200 (IST) Date: Sat, 06 Jan 2007 10:39:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus CC: gdb@sources.redhat.com In-reply-to: <200701052303.59465.ghost@cs.msu.su> (message from Vladimir Prus on Fri, 5 Jan 2007 23:03:59 +0300) Subject: Re: -var-list --locals proposal Reply-to: Eli Zaretskii References: <200701052303.59465.ghost@cs.msu.su> X-IsSubscribed: yes 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: 2007-01/txt/msg00102.txt.bz2 > From: Vladimir Prus > Date: Fri, 5 Jan 2007 23:03:59 +0300 > > I propose to introduce a new command: > > -var-list --locals As you explain further, this will actually list all variables that are visible in the current scope. So a better name for this command would be something like "-var-list --scope FRAME" or "-var-list --frame FRAME". > I think that to avoid creating and destroying variable > objects as we step though inner blocks, -var-list should construct > varobjs for all variables in all blocks of a function. Won't lazy creation (on as needed basis) be a better strategy?