Mark Wielaard <m...@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