pulling DWARF info from GDB

Cary Coutant ccoutant@gmail.com
Wed Jun 17 21:18:00 GMT 2015


> Could someone explain what objects/containers/things hold this info
> and what functions populate these structures with the DWARF info? This
> would save me a lot of trouble of writing my own parser,

Rather than writing your own parser, or trying to adapt the one from
GDB or gold, I'd encourage you to take a look at libdwarf:

   http://www.prevanders.net/dwarf.html

There's also a good tutorial on the DWARF format at dwarfstd.org:

   http://dwarfstd.org/doc/Debugging%20using%20DWARF-2012.pdf

-cary



More information about the Binutils mailing list