[PATCH] libdw: Cache ELF directory early. Explicitly set it in dwfl.

2018-05-17 Thread Mark Wielaard
The logic that finds alt files and dwo files relies on having an open file descriptor. But after all needed ELF data has been read the underlying Elf file descriptor can be closed. libdwfl in particular closes file descriptor fairly aggressively. So capture the directory early on. And make dwfl set

[PATCH] libdw: Search skeleton DIE for split compile unit DIE attributes.

2018-05-17 Thread Mark Wielaard
dwarf_attr_integrate and dwarf_hasattr_integrate should also search for attributes from the skeleton DIE in case the given DIE is a split compile unit DIE. Split compile unit DIEs inherit various attributes from their skeleton unit DIE in DWARF5. Signed-off-by: Mark Wielaard --- libdw/ChangeLog