This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: pulling DWARF info from GDB
- From: K Jski <bielsk1 at vt dot edu>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>, Antonio Barbalace <antoniob at vt dot edu>
- Date: Wed, 17 Jun 2015 17:32:25 -0400
- 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> <CAJimCsFpXLpUfAQLHjYPVSbrVeWmkmDuhSdVQUdgqktyMNgAXA at mail dot gmail dot com>
Thanks for the quick response
I have actually come across both resources actually, and thanks to the
tutorial at dwarfstd.org, I do understand more about the dwarf syntax
and its significance to give me everything I want.
As for libdwarf, I noticed that the library has 0 downloads in its
history for all time (since it was released in 2012), which leads me
to be a little bit suspicious. Do you have any experience with this
library/developer to suggest it??
Sincerely,
C Jelesnianski
Graduate Student @ Virginia Tech
On Wed, Jun 17, 2015 at 5:18 PM, Cary Coutant <ccoutant@gmail.com> wrote:
>> 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