Binutils support for dwarf-5 (location and range lists related)
authorNick Clifton <nickc@redhat.com>
Tue, 21 Jun 2022 15:37:27 +0000 (16:37 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Jun 2022 15:37:27 +0000 (16:37 +0100)
commitec41dd75c866599fc03c390c6afb5736c159c0ff
treef06cace04555f1f571bf0395b1394dd8349567da
parentacd65fa610df09a0954b8fecdadf546215263c5d
Binutils support for dwarf-5 (location and range lists related)

* dwarf.h (struct debug_info): Add rnglists_base field.
* dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base.
(display_debug_rnglists_list): While handling DW_RLE_base_addressx,
   DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter
value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section.
(display_debug_ranges): Add rnglists_base to the .debug_rnglists base address.
(load_separate_debug_files): Load .debug_addr section, if exists.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h