From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6808 invoked by alias); 5 Apr 2012 16:30:29 -0000 Received: (qmail 6774 invoked by uid 22791); 5 Apr 2012 16:30:26 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60pc101.us.dell.com (HELO ausc60pc101.us.dell.com) (143.166.85.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Apr 2012 16:30:13 +0000 X-Loopcount0: from 10.175.216.251 From: To: , CC: Date: Thu, 05 Apr 2012 16:30:00 -0000 Subject: RE: [RFC - Python Scripting] New method Objfile.symtabs () - docs included Message-ID: <09787EF419216C41A903FD14EE5506DD0313D5BF45@AUSX7MCPC103.AMER.DELL.COM> References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-04/txt/msg00072.txt.bz2 > Assuming we want to provide the ability to iterate over all the symbol=20 > tables, we want to be able to do that without first expanding them. > So I think the first question is what will the user want to do with=20 > this feature? Something else I'm looking for, and this seems to be a step in that directi= on, is a way to iterate over all the defined types. For example, I want to= do some checking similar to what "pahole" does. The command line utility = by that name processes all the types but its output is hard to handle. The= Python machinery to do the equivalent on a single type is already in place= , but how do I get all the types defined in my program? Those presumably l= ive in a symtab but I didn't see a gdb.Symtab method to get them. (Is that= the right approach? I can work on creating the machinery if this is the p= lace for them, or if someone can point me to where in the gdb.* class hiera= rchy to fit this.) paul