MI equivalent for "whatis"

Vladimir Prus ghost@cs.msu.su
Fri Jan 27 16:11:00 GMT 2006


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







More information about the Gdb mailing list