From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15983 invoked by alias); 10 Apr 2007 14:03:05 -0000 Received: (qmail 15957 invoked by uid 22791); 10 Apr 2007 14:03:05 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Apr 2007 15:02:57 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id C32364B267; Tue, 10 Apr 2007 09:02:55 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id A08734B262; Tue, 10 Apr 2007 09:02:55 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HbGvu-0007s6-Cg; Tue, 10 Apr 2007 10:02:54 -0400 Date: Tue, 10 Apr 2007 14:03:00 -0000 From: Daniel Jacobowitz To: lode lathouwers Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] New maintenance print typechain command. Message-ID: <20070410140254.GA30086@caradoc.them.org> Mail-Followup-To: lode lathouwers , gdb-patches@sourceware.org References: <108445.72375.qm@web28004.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <108445.72375.qm@web28004.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00083.txt.bz2 On Sun, Apr 08, 2007 at 06:51:46PM +0000, lode lathouwers wrote: > Why can't you get what you need from 'info types'? > Info types does not show complete struct declarations (fields are not shown) Also it gives ALL type names, > while I only want to explore/print a few + their downward dependancies. > So what you want is the output of ptype for a bunch of different types, but you don't know in advance which. I think we should wait a little while; our plan for this year (well, my plan anyway) is to add Python scripting support to GDB, and that will be powerful enough to do this. I don't think the command will be widely enough useful to implement it in GDB proper. Once we have Python support, though, we should include a directory of contributed and example scripts - this would be a great start for that. (I'm planning to work on this starting in a month or so.) -- Daniel Jacobowitz CodeSourcery