This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Collecting description of types from symbol table


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]