diff options
| author | Mark Wielaard <[email protected]> | 2017-11-24 11:16:06 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-05-27 14:28:07 +0200 |
| commit | bc1f86b0c4fd9d00f184e759be5dbab1a15be934 (patch) | |
| tree | 0903cfddc0ad86590b96fd1af8616dc9a6f5c659 /libdw/dwarf.h | |
| parent | 059b6b1b612f04e1d8f447b080d2ecbd37fc011d (diff) | |
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 <[email protected]>
Diffstat (limited to 'libdw/dwarf.h')
| -rw-r--r-- | libdw/dwarf.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 { |
