From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11133 invoked by alias); 6 Mar 2012 23:16:22 -0000 Received: (qmail 11121 invoked by uid 22791); 6 Mar 2012 23:16:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Mar 2012 23:16:01 +0000 Received: by vcbfk14 with SMTP id fk14so5741386vcb.0 for ; Tue, 06 Mar 2012 15:16:00 -0800 (PST) Received-SPF: pass (google.com: domain of j.vimal@gmail.com designates 10.52.28.178 as permitted sender) client-ip=10.52.28.178; Authentication-Results: mr.google.com; spf=pass (google.com: domain of j.vimal@gmail.com designates 10.52.28.178 as permitted sender) smtp.mail=j.vimal@gmail.com; dkim=pass header.i=j.vimal@gmail.com Received: from mr.google.com ([10.52.28.178]) by 10.52.28.178 with SMTP id c18mr3989028vdh.45.1331075760619 (num_hops = 1); Tue, 06 Mar 2012 15:16:00 -0800 (PST) Received: by 10.52.28.178 with SMTP id c18mr3483113vdh.45.1331075760212; Tue, 06 Mar 2012 15:16:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.227.130 with HTTP; Tue, 6 Mar 2012 15:15:40 -0800 (PST) In-Reply-To: <87y5rfvwcj.fsf@fleche.redhat.com> References: <87y5rfvwcj.fsf@fleche.redhat.com> From: Vimal Date: Tue, 06 Mar 2012 23:16:00 -0000 Message-ID: Subject: Re: Collecting description of types from symbol table To: Tom Tromey Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2012-03/txt/msg00020.txt.bz2 Hi Tom, On 5 March 2012 08:36, Tom Tromey wrote: > > Usually it is stored in DWARF format. > See http://dwarfstd.org/ > > Iterating over all the types, in gdb, is not trivial. > It could be done but you will have to write some C code to do it. DWARF standard pointed me to dwarfdump, which seems to dump the type information stored in an object file. > The 7 dwarves project would be an ok place to start for this though. > pahole nearly does it already. pahole is interesting, but it looks like its repository on kernel.org is down. I'll contact the author. Thanks! -- Vimal