From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20192 invoked by alias); 7 Aug 2007 11:45:12 -0000 Received: (qmail 20100 invoked by uid 22791); 7 Aug 2007 11:45:12 -0000 X-Spam-Check-By: sourceware.org Received: from 213-239-199-119.clients.your-server.de (HELO mail.emss.co.za) (213.239.199.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Aug 2007 11:45:07 +0000 Received: from newmail.emss.co.za (dsl-241-163-128.telkomadsl.co.za [41.241.163.128]) by mail.emss.co.za (Postfix) with ESMTP id B586621E16; Tue, 7 Aug 2007 11:45:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by newmail.emss.co.za (Postfix) with ESMTP id A4C2C14672F; Tue, 7 Aug 2007 13:45:01 +0200 (SAST) Received: from newmail.emss.co.za ([127.0.0.1]) by localhost (newmail.emss.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18638-02; Tue, 7 Aug 2007 13:45:01 +0200 (SAST) Received: from [172.16.1.123] (unknown [172.16.1.123]) by newmail.emss.co.za (Postfix) with ESMTP id 533DE105A69; Tue, 7 Aug 2007 13:45:01 +0200 (SAST) Subject: Re: gdb whatis command From: Abri Zaaiman Reply-To: azaaiman@emss.co.za To: Daniel Jacobowitz , gdb@sourceware.org In-Reply-To: <20070807113217.GB24874@caradoc.them.org> References: <1186468237.5024.11.camel@azaaiman.emss.co.za> <20070807113217.GB24874@caradoc.them.org> Content-Type: text/plain Date: Tue, 07 Aug 2007 11:45:00 -0000 Message-Id: <1186487101.19579.9.camel@azaaiman.emss.co.za> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit 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/msg00070.txt.bz2 Thanks for your reply, Thats exactly what I needed to know. I will take a look at the discussions. I take it they were on this mailing list? For me, I believe, it would be easier to make an eclipse plugin. Eclipse seems to do quite a bit of parsing on gdb output so I know this possible. I am also working on something to load debugging info more intelligently. The debug symbols for my current project are about 1.8 GB and take quite a while to load. I already have a way of stripping debug symbols and placing them in seperate files. All that is missing is to make gdb load the symbols when they become needed. Since this will probably have to be an eclipse plugin I might as well combine the two. Thanks again Abri Zaaiman On Tue, 2007-08-07 at 07:32 -0400, Daniel Jacobowitz wrote: > 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. >