|interpreting dwarf information from the elf executable firstname.lastname@example.org (email@example.com) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable firstname.lastname@example.org (Peter Bergner) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable email@example.com (Russ Cox) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable firstname.lastname@example.org (Markus Armbruster) (2008-01-24)|
|From:||Markus Armbruster <email@example.com>|
|Date:||Thu, 24 Jan 2008 13:30:45 +0100|
|Posted-Date:||24 Jan 2008 09:30:58 EST|
"firstname.lastname@example.org" <email@example.com> writes:
> I have to find out the information about all the structures (the
> member names, offsets, their type and size etc) from the dwarf
> sections in the elf executable.
> Is their any code available thta can print the entire structure
> (alongwith its member names) ?
> I would be highly grateful for any pointers/help.
> [There must be code in gdb and other debuggers that does so. -John]
Try pahole, one of the seven dwarves[*]. Fedora has it in package
dwarves. I highly recommend the OLS paper[**] describing it.
Return to the
Search the comp.compilers archives again.