From b37feac1a8ceebb0748cb28d219aa8387d0885dd Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 29 May 2018 00:59:28 +0200 Subject: readelf, libdw: Add GNU DebugFission .debug_loc support. 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/dwarf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libdw/dwarf.h') diff --git a/libdw/dwarf.h b/libdw/dwarf.h index 8985a9d4..dc597335 100644 --- a/libdw/dwarf.h +++ b/libdw/dwarf.h @@ -915,6 +915,16 @@ enum }; +/* GNU DebugFission list entry encodings (.debug_loc.dwo). */ +enum + { + DW_LLE_GNU_end_of_list_entry = 0x0, + DW_LLE_GNU_base_address_selection_entry = 0x1, + DW_LLE_GNU_start_end_entry = 0x2, + DW_LLE_GNU_start_length_entry = 0x3 + }; + + /* DWARF call frame instruction encodings. */ enum { -- cgit v1.2.3