From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17265 invoked by alias); 1 May 2008 20:49:19 -0000 Received: (qmail 17252 invoked by uid 22791); 1 May 2008 20:49:18 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 May 2008 20:48:59 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A9271983D6; Thu, 1 May 2008 20:48:57 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 7649D98366; Thu, 1 May 2008 20:48:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jrfi4-00086A-LP; Thu, 01 May 2008 16:48:56 -0400 Date: Thu, 01 May 2008 20:49:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Marc Khouzam , Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: [PATCH:MI] Return a subset of a variable object's children Message-ID: <20080501204856.GW22218@caradoc.them.org> Mail-Followup-To: Vladimir Prus , Marc Khouzam , Nick Roberts , gdb-patches@sources.redhat.com References: <6D19CA8D71C89C43A057926FE0D4ADAA042910B6@ecamlmw720.eamcs.ericsson.se> <200805011954.31277.vladimir@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD10@ecamlmw720.eamcs.ericsson.se> <200805012239.59601.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200805012239.59601.vladimir@codesourcery.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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/msg00048.txt.bz2 On Thu, May 01, 2008 at 10:39:59PM +0400, Vladimir Prus wrote: > 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 :-) -- Daniel Jacobowitz CodeSourcery