[PATCH] libdw: Support DW_OP_addrx/constx and split DWARF addrx/constx support.

Mark Wielaard mark@klomp.org
Fri May 25 13:10:00 GMT 2018

On Tue, 2018-05-22 at 13:10 +0200, Mark Wielaard wrote:
> DW_OP_addrx/constx and GNU DebugFission DW_OP_GNU_addr/const_index take
> as argument an index into the .debug_addr section for the associated CU.
> This index gets resolved through dwarf_getlocation_attr. A new fake addr
> CU is created per Dwarf for use with this new attribute. For split DWARF
> files, the IDX_debug_addr gets replaced with the skeleton section and the
> addr base is resolved immediately when constructing the split DWARF CU.
> Move __libdw_cu_addr_base to libdwP.h to share with eu-readelf. Also
> make it possible to resolve addrx[1234]/GNU_addr_index also as constant
> indexes to (also) show when displaying these attributes in eu-readelf.
> A new varlocs tests is added to test the resolving for both the DWARF4
> and DWARF5 DW_OP variants. And now that addrx forms are resolved in
> split DWARF files add the new DIEs with "single ranges" (those DIEs that
> have a lowpc/highpc attribute pair) to run-all-dwarf-ranges.sh.

Pushed to master.

More information about the Elfutils-devel mailing list