This is v2 of the patch set that adds more complete .debug_dwp, .debug_sup, and Dwarf Type support. This version fixes some review comments against the original patch series and adds two new patches to support "same file" support for split dwarf objects (where the .dwo sections are in the main file instead of a separate .dwo file), and uses the .debug_dwp section to actually find the .dwp file (instead of just depending on heuristics).
[PATCH v2 1/5] libdwelf: Add dwelf_dwarf_debug_dwp and dwelf_dwarf_debug_sup - Fix "and is_dwp" instead of "and is_supp" comment. - Change the code so that if zero is returned because there is no section, then the filepath and id references (if given) are set to NULL. [PATCH v2 2/5] libdw,readelf: fully support DWARF5 supplementary files and forms - Use code change in patch 1 to guard checks with if (build_id_len < 0 || filepath == NULL || is_sup != 0) in both find_debug_altlink and tests. [PATCH v2 3/5] libdw: Add Dwarf_Type (plain, dwo, gnu_lto) support for dwarf_begin - check_section should not mark IDX_debug_dwp as DWP (could be plain). - Remove turn assert into check in scngrp_read. [PATCH v2 4/5] libdw: Support using same file split DWARF - New patch [PATCH v2 5/5] libdw: Use dwelf_dwarf_debug_dwp in try_dwp_file - Likewise
