From bc1f86b0c4fd9d00f184e759be5dbab1a15be934 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 24 Nov 2017 11:16:06 +0100 Subject: readelf: Add .debug_rnglists support. Parse the .debug_rnglists section for DWARF5 --debug-dump=ranges. Add testcase to show both "normal" and "split" DWARF variants are handled for DWARF4 and DWARF5. Signed-off-by: Mark Wielaard --- libdw/dwarf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libdw/dwarf.h') diff --git a/libdw/dwarf.h b/libdw/dwarf.h index c4383990..9c2495e6 100644 --- a/libdw/dwarf.h +++ b/libdw/dwarf.h @@ -886,6 +886,19 @@ enum #define DW_MACRO_GNU_hi_user DW_MACRO_hi_user +/* Range list entry encoding. */ +enum + { + DW_RLE_end_of_list = 0x0, + DW_RLE_base_addressx = 0x1, + DW_RLE_startx_endx = 0x2, + DW_RLE_startx_length = 0x3, + DW_RLE_offset_pair = 0x4, + DW_RLE_base_address = 0x5, + DW_RLE_start_end = 0x6, + DW_RLE_start_length = 0x7 + }; + /* DWARF call frame instruction encodings. */ enum { -- cgit v1.2.3