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

Daniel Jacobowitz drow@false.org
Thu May 1 20:49:00 GMT 2008


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



More information about the Gdb-patches mailing list