[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/21023] The abidw tool does not appear to read dwarf from .dwp files associated with executables



https://sourceware.org/bugzilla/show_bug.cgi?id=21023

--- Comment #6 from Mark Wielaard <mark at klomp dot org> ---
elfutils 0.171 was recently released with support for DWARF5 and split-dwarf
(including GNU DebugFission as extension to older DWARF).

https://sourceware.org/ml/elfutils-devel/2018-q2/msg00141.html

For now .dwo files are supported, but not yet .dwp files.
(Also the binutils dwp tools doesn't work with DWARF5 split dwarf.)
It will take a bit more programming to also add .dwp support, but hopefully the
structure of the elfutils code is now so that this isn't major surgery.

Although most things should work as is, libabigail will need to use a few new
interfaces to properly handle split dwarf, iterate through CUs using the new
dwarf_get_units, and change from using offsets and dwarf_dieoffset/dwarf_offdie
to using the new dwarf_die_addr_die interface (because DIEs can now come from
multiple files, so using offsets alone isn't enough to identify a DIE).

While we update libabigail for this could you try out the new elfutils-0.171
tools to see if they work correctly in your setup?

And could you indicate how important .dwp support is? Would a libabigail that
just works with .dwo files be enough for now?

The interfaces should be generic enough that when .dwp support is added to
elfutils libdw, then they should work as is and libabigail shouldn't really
care whether the split dwarf units come from the .dwo files or the .dwp package
file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.