|interpreting dwarf information from the elf executable email@example.com (firstname.lastname@example.org) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable email@example.com (Peter Bergner) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable firstname.lastname@example.org (Russ Cox) (2008-01-23)|
|Re: interpreting dwarf information from the elf executable email@example.com (Markus Armbruster) (2008-01-24)|
|From:||Markus Armbruster <firstname.lastname@example.org>|
|Date:||Thu, 24 Jan 2008 13:30:45 +0100|
|Posted-Date:||24 Jan 2008 09:30:58 EST|
"email@example.com" <firstname.lastname@example.org> 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.