Binutils support for split-dwarf and dwarf-5

* dwarf.c (fetch_indexed_string): Added new parameter
	str_offsets_base to calculate the string offset.
	(read_and_display_attr_value): Read DW_AT_str_offsets_base
	attribute.
	(process_debug_info): While allocating memory and initializing
	debug_information, do it for do_debug_info also, if its true.
	(load_separate_debug_files): Load .debug_str_offsets if exists.
	* dwarf.h (struct debug_info): Add str_offsets_base field.
This commit is contained in:
Kumar N, Bhuvanendra
2022-06-22 17:07:25 +01:00
committed by Nick Clifton
parent afc41ffb99
commit f18acc9c4e
3 changed files with 56 additions and 15 deletions

View File

@@ -193,6 +193,7 @@ typedef struct
unsigned int num_range_lists;
unsigned int max_range_lists;
dwarf_vma rnglists_base;
dwarf_vma str_offsets_base;
}
debug_info;