Related articles |
---|
interpreting dwarf information from the elf executable junky_fellow@yahoo.co.in (junky_fellow@yahoo.co.in) (2008-01-23) |
Re: interpreting dwarf information from the elf executable bergner@vnet.ibm.com (Peter Bergner) (2008-01-23) |
Re: interpreting dwarf information from the elf executable rsc@swtch.com (Russ Cox) (2008-01-23) |
Re: interpreting dwarf information from the elf executable armbru@pond.sub.org (Markus Armbruster) (2008-01-24) |
From: | Markus Armbruster <armbru@pond.sub.org> |
Newsgroups: | comp.compilers |
Date: | Thu, 24 Jan 2008 13:30:45 +0100 |
Organization: | Arcor |
References: | 08-01-066 |
Keywords: | debug |
Posted-Date: | 24 Jan 2008 09:30:58 EST |
"junky_fellow@yahoo.co.in" <junky_fellow@yahoo.co.in> 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.
[*] http://userweb.kernel.org/~acme/dwarves/
[**] https://ols2006.108.redhat.com/2007/Reprints/melo-Reprint.pdf
Return to the
comp.compilers page.
Search the
comp.compilers archives again.