This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH 1/2] libdw: Add new function dwarf_cu_getdwarf.
- From: Dodji Seketeli <dodji at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sun, 17 Aug 2014 12:52:17 +0200
- Subject: Re: [PATCH 1/2] libdw: Add new function dwarf_cu_getdwarf.
Mark Wielaard <mjw@redhat.com> writes:
> In both systemtap and libabigail there is a need to get the actual Dwarf
> underlying an Dwarf_Die or Dwarf_Attribute. Following a DIE reference
> might end up in an alternate Dwarf since the addition of DWZ multifile
> forms. Both Dwarf_Die and Dwarf_Attribute already contain a Dwarf_CU
> handle. Add a function dwarf_cu_getdwarf to retrieve the underlying
> Dwarf using the Dwarf_CU.
Thanks Mark!
This, indeed, is going to be useful for libabigail at least. This new
dwarf_cu_getdwarf function, along with the existing dwarf_diecu function
will allow us to get the actual Dwarf a given DIE comes from. And with
the recently added dwarf_getalt function, we'll be able to tel if the
DIE comes from the alternate Dwarf or not. This is awesome.
Thanks again.
Cheers.
--
Dodji