[PATCH] readelf: Fix regression with multiple files and implicit debug_info reading.

2018-05-29 Thread Mark Wielaard
Commit 314e9d7d "readelf: Handle .debug_info first if any other debug section needs it" introduced a regression when handling multiple files. The implicit and explicit printing of debuginfo weren't reset and so the second file would not show (or scan) the .debug_info section when needed. Fix by re

[PATCH] readelf, libdw: Add GNU DebugFission .debug_loc support.

2018-05-29 Thread Mark Wielaard
GNU DebugFission .debug_loc location lists uses the .debug_loc section in the split dwarf .dwo file. The encoding is a mix of old style DWARF .debug_loc and new style .debug_loclists. Add two testcases for the readelf and libdw decoders. Signed-off-by: Mark Wielaard --- libdw/ChangeLog

Re: [PATCH] libdwfl: Allow partial relocations also for debug files.

2018-05-29 Thread Mark Wielaard
On Sun, 2018-05-27 at 14:13 +0200, Mark Wielaard wrote: > __libdwfl_relocate is called for get_dwarf and get_elf. We allow not all > relocations to be resolved for Elf files, but required all relocations > (in the debug sections) to be fully resoled in Dwarf files. This used to > mostly work out wi

Re: [PATCH] readelf: Handle .debug_loclists.

2018-05-29 Thread Mark Wielaard
On Sun, 2018-05-27 at 14:25 +0200, Mark Wielaard wrote: > The new DWARF5 .debug_loclists sections are like .debug_rnglists, but > plus locations. For Split Dwarf GCC generates the .debug_loclists fully > in the split .dwo file. Any references to addresses need to be resolved > through the skeleton

[PATCH] libdw: Handle split Dwarf Dies in dwarf_die_addr_die.

2018-05-29 Thread Mark Wielaard
dwarf_die_addr_die can be used to turn an Dwarf_Die addr back into a full Dwarf_Die, just given the original Dwarf debug handle. This now also works for Dwarf_Dies which originated from a split Dwarf. Whenever a split Dwarf_CU is found the Dwarf it originated from is registered with the Dwarf that

Re: [PATCH] libdw: Handle split Dwarf Dies in dwarf_die_addr_die.

2018-05-29 Thread Mark Wielaard
On Tue, 2018-05-29 at 23:57 +0200, Mark Wielaard wrote: > dwarf_die_addr_die can be used to turn an Dwarf_Die addr back into a > full Dwarf_Die, just given the original Dwarf debug handle. This now > also works for Dwarf_Dies which originated from a split Dwarf. Whenever > a split Dwarf_CU is found

Re: [PATCH] libdw: Handle .debug_loclists in dwarf_getlocation.

2018-05-29 Thread Mark Wielaard
On Mon, 2018-05-28 at 13:32 +0200, Mark Wielaard wrote: > Handle all new DW_LLE opcodes in .debug_loclists in dwarf_getlocation. > __libdw_read_begin_end_pair_inc now also handles a default location > (which is simply the range [0,-1]). Since expression blocks can now > also come from the .debug_lo

[PATCH] Prepare for 0.171.

2018-05-29 Thread Mark Wielaard
Set version to 0.171. Update po/*.po files. Mention DWARF5, split dwarf and GNU DebugFission support in NEWS. Signed-off-by: Mark Wielaard I think we are ready for a release now. For people who like to try out a tar ball, there is now an rc1 (0.170.99) at: https://sourceware.org/elfutils/ftp/rc/