gdb whatis command

Daniel Jacobowitz drow@false.org
Tue Aug 7 11:32:00 GMT 2007


On Tue, Aug 07, 2007 at 08:30:37AM +0200, Abri Zaaiman wrote:
> As far as I can tell it is not possible to use whatis in an expression
> in the gdb scripting language.  For example something like this:
> 
> set $type = whatis myMap
> 
> Is there a way to do this?  If not how difficult whould it be to add
> this ability to GDB?

No, it is not possible yet.

> Ultimately I would also need to do some string manipulation to extract
> the types from the output of whatis.  Is this possible in the gdb
> scripting langauge?

Neither is this.

You might want to see the discussions we've had about adding Python
bindings to the scripting interface.  I hope we'll have something like
that for GDB 7.0, whenever that's ready.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list