From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28650 invoked by alias); 7 Aug 2007 11:32:21 -0000 Received: (qmail 28591 invoked by uid 22791); 7 Aug 2007 11:32:21 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Aug 2007 11:32:19 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CCB09982C5; Tue, 7 Aug 2007 11:32:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AF58F98296; Tue, 7 Aug 2007 11:32:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IINIP-0006Wa-2Y; Tue, 07 Aug 2007 07:32:17 -0400 Date: Tue, 07 Aug 2007 11:32:00 -0000 From: Daniel Jacobowitz To: Abri Zaaiman Cc: gdb@sourceware.org Subject: Re: gdb whatis command Message-ID: <20070807113217.GB24874@caradoc.them.org> Mail-Followup-To: Abri Zaaiman , gdb@sourceware.org References: <1186468237.5024.11.camel@azaaiman.emss.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1186468237.5024.11.camel@azaaiman.emss.co.za> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00069.txt.bz2 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