MI equivalent for "whatis"

Daniel Jacobowitz drow@false.org
Thu Jan 26 17:22:00 GMT 2006


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

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list