This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Collecting description of types from symbol table
- From: Vimal <j dot vimal at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 6 Mar 2012 15:15:40 -0800
- Subject: Re: Collecting description of types from symbol table
- 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
- References: <CAK3Ji10Z_6CiaH_CDtEGSYG6UUugm0B85Mdb8txbcSn74dji8g@mail.gmail.com> <87y5rfvwcj.fsf@fleche.redhat.com>
Hi Tom,
On 5 March 2012 08:36, Tom Tromey <tromey@redhat.com> 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