This is the mail archive of the gdb@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: MI equivalent for "whatis"


Daniel Jacobowitz wrote:

> On Thu, Jan 26, 2006 at 07:21:47PM +0300, Vladimir Prus wrote:
>> 
>> Is there any MI command that does the same as "whatis".
> 
> What you see in the manual is what you get :-)
> 
>> The "-symbol-type" is not implemented and to use `-var-info-type' I need
>> to use "variable-objects", which is too much of refactoring.
> 
> I assume you mean -symbol-list-types.  

No, exactly "-symbol-type" which is documented as equivalent to "ptype".

> Someone could implement that. 
> But varobj really is the way to go and it wouldn't be hard to do a
> special-case of that:
> 
>   -var-create OBJ * <symbolname>
>   -var-info-type OBJ
>   -var-delete OBJ

Thanks, that worked.

- Volodya






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