This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb whatis command
- From: Daniel Jacobowitz <drow at false dot org>
- To: Abri Zaaiman <azaaiman at emss dot co dot za>
- Cc: gdb at sourceware dot org
- Date: Tue, 7 Aug 2007 07:32:17 -0400
- Subject: Re: gdb whatis command
- References: <1186468237.5024.11.camel@azaaiman.emss.co.za>
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