Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Abri Zaaiman <azaaiman@emss.co.za>
Cc: gdb@sourceware.org
Subject: Re: gdb whatis command
Date: Tue, 07 Aug 2007 11:32:00 -0000	[thread overview]
Message-ID: <20070807113217.GB24874@caradoc.them.org> (raw)
In-Reply-To: <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


  reply	other threads:[~2007-08-07 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07  6:30 Abri Zaaiman
2007-08-07 11:32 ` Daniel Jacobowitz [this message]
2007-08-07 11:45   ` Abri Zaaiman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070807113217.GB24874@caradoc.them.org \
    --to=drow@false.org \
    --cc=azaaiman@emss.co.za \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox