From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28313 invoked by alias); 1 May 2008 23:38:10 -0000 Received: (qmail 28304 invoked by uid 22791); 1 May 2008 23:38:09 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 May 2008 23:37:44 +0000 Received: from kahikatea.snap.net.nz (103.31.255.123.static.snap.net.nz [123.255.31.103]) by viper.snap.net.nz (Postfix) with ESMTP id 62A123DA48B; Fri, 2 May 2008 11:37:42 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id F1F218FC6D; Fri, 2 May 2008 11:37:39 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18458.21568.657943.485907@kahikatea.snap.net.nz> Date: Thu, 01 May 2008 23:38:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , Marc Khouzam , gdb-patches@sources.redhat.com Subject: Re: [PATCH:MI] Return a subset of a variable object's children In-Reply-To: <20080501204856.GW22218@caradoc.them.org> References: <6D19CA8D71C89C43A057926FE0D4ADAA042910B6@ecamlmw720.eamcs.ericsson.se> <200805011954.31277.vladimir@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD10@ecamlmw720.eamcs.ericsson.se> <200805012239.59601.vladimir@codesourcery.com> <20080501204856.GW22218@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00053.txt.bz2 > > I don't know :-) I think that myArray@10 is gdb CLI trick; I never though > > it could be used in MI, but thinking of it, I cannot see a reason why not. > > Yes, it can, and it's documented - just not in the MI chapter. The > bit on the end of -var-create is just a GDB source language > expression, so refer to Artificial Arrays in the manual. > > If this is the same as slicing, then it'd be nice to mention the > word "slice" in that chapter somewhere :-) This is not the same as what I am proposing though. Doing -var-create - * myArray@10 and -var-create - * (myArray + 100)@20 say would create two separate varobjs which the frontend would have to juggle. I am proposing one varobj to be a parent of all the children. -- Nick http://www.inet.net.nz/~nickrob