This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: pulling DWARF info from GDB
- From: Cary Coutant <ccoutant at gmail dot com>
- To: K Jski <bielsk1 at vt dot edu>
- Cc: Binutils <binutils at sourceware dot org>, Antonio Barbalace <antoniob at vt dot edu>
- Date: Wed, 17 Jun 2015 14:18:15 -0700
- Subject: Re: pulling DWARF info from GDB
- Authentication-results: sourceware.org; auth=none
- References: <CAH=yU0ZZ4irnVrJAB_-5-pcdPto1o6i6CbQ8q5mTO5skEPf_-w at mail dot gmail dot com>
> 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