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


 > > 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


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