From 84102ebc29a1ea531e7fe78bd841bfb2fe501dc2 Mon Sep 17 00:00:00 2001 From: Vsevolod Alekseyev Date: Mon, 25 Sep 2023 18:01:31 +0100 Subject: Fix readelf's display of dwarf v5 range lists PR 30792 * dwarf.h (struct debug_info): Remove range_versions field. * dwarf.c (fetch_indexed_offset): New function. (read_and_display_attr_value): Use it for DW_FORM_rnglistx. Remove code to initialise range_versions. (skip_attribute): New function. (read_bases): Read and reccord all range and address bases in a CU. (process_debug_info): Call read_bases. (display_debug_rnglists): Rename to display_debug_rnglists_unit_header and only display the range list header information. (display_debug_ranges): Adjust. --- binutils/dwarf.h | 1 - 1 file changed, 1 deletion(-) (limited to 'binutils/dwarf.h') diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 61c4158..d2f9523 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -189,7 +189,6 @@ typedef struct /* List of .debug_ranges offsets seen in this .debug_info. */ uint64_t * range_lists; - unsigned int * range_versions; unsigned int num_range_lists; unsigned int max_range_lists; uint64_t rnglists_base; -- cgit v1.1