From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10679 invoked by alias); 15 Nov 2006 21:02:41 -0000 Received: (qmail 10658 invoked by uid 22791); 15 Nov 2006 21:02:39 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 21:02:29 +0000 Received: from kahikatea.snap.net.nz (p202-124-125-17.snap.net.nz [202.124.125.17]) by viper.snap.net.nz (Postfix) with ESMTP id 8BFC23D814A; Thu, 16 Nov 2006 10:02:46 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 46EA2BE43E; Thu, 16 Nov 2006 09:58:23 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17755.32622.609016.534114@kahikatea.snap.net.nz> Date: Wed, 15 Nov 2006 21:02:00 -0000 To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: MI varobj properties In-Reply-To: <200611151942.14091.vladimir@codesourcery.com> References: <200611151942.14091.vladimir@codesourcery.com> X-Mailer: VM 7.19 under Emacs 22.0.90.14 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-11/txt/msg00108.txt.bz2 > Except for getting the value of a variable objects, all those properties are > computed by gdb, and there are no complex algorithms. How about the > following change: > > > - The commands that create new variable object always return full > list of properties. > - There's a new command that also returns the full list of properties > - For backward compatibility, existing commands just forward > to the new command. > > Comments? I only use the properties currently output with -var-create. I think first you need to consider carefully how you would use any new command and which properties change after creation (if there are none then they could all be accessed from -var-create). I'm not sure what you mean by forward to the new command, presumably you can add a new command and leave the old ones as they are. -- Nick http://www.inet.net.nz/~nickrob