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: gdb whatis command


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


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