Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MI equivalent for "whatis"
@ 2006-01-26 16:38 Vladimir Prus
  2006-01-26 17:22 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Prus @ 2006-01-26 16:38 UTC (permalink / raw)
  To: gdb


Is there any MI command that does the same as "whatis".

The "-symbol-type" is not implemented and to use `-var-info-type' I need to
use "variable-objects", which is too much of refactoring.

- Volodya



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MI equivalent for "whatis"
  2006-01-26 16:38 MI equivalent for "whatis" Vladimir Prus
@ 2006-01-26 17:22 ` Daniel Jacobowitz
  2006-01-27 16:11   ` Vladimir Prus
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-01-26 17:22 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MI equivalent for "whatis"
  2006-01-26 17:22 ` Daniel Jacobowitz
@ 2006-01-27 16:11   ` Vladimir Prus
  2006-01-27 16:13     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Prus @ 2006-01-27 16:11 UTC (permalink / raw)
  To: gdb

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MI equivalent for "whatis"
  2006-01-27 16:11   ` Vladimir Prus
@ 2006-01-27 16:13     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-01-27 16:13 UTC (permalink / raw)
  To: gdb

On Fri, Jan 27, 2006 at 06:49:26PM +0300, Vladimir Prus wrote:
> No, exactly "-symbol-type" which is documented as equivalent to "ptype".

Oh right - I completely misread the manual...

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-27 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-26 16:38 MI equivalent for "whatis" Vladimir Prus
2006-01-26 17:22 ` Daniel Jacobowitz
2006-01-27 16:11   ` Vladimir Prus
2006-01-27 16:13     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox