This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH:MI] Return a subset of a variable object's children


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]