Commit: PR 28981: Add initial support for offset entry tables in DWARF-5 .debug_loclists sections
Nick Clifton
nickc@redhat.com
Wed Apr 6 13:43:15 GMT 2022
Hi Guys,
I am applying the attached patch as an initial fix for PR 28981. This
PR points out that we do not currently support the decoding or display
of offset entry tables in .debug_loclists sections. The patch does
add support for them, although it can get the CU offsets wrong if
there are multiple CUs that make use of the same loclists.
Cheers
Nick
binutils/ChangeLog
2022-04-06 Nick Clifton <nickc@redhat.com>
PR 28981
* dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
return the address, rather than a string.
(fetch_indexed_value): New function - returns a value indexed by a
DW_FORM_loclistx or DW_FORM_rnglistx form.
(read_and_display_attr_value): Add support for DW_FORM_loclistx
and DW_FORM_rnglistx.
(process_debug_info): Load the loclists and rnglists sections.
(display_loclists_list): Add support for DW_LLE_base_addressx,
DW_LLE_startx_endx, DW_LLE_startx_length and
DW_LLE_default_location.
(display_offset_entry_loclists): New function. Displays a
.debug_loclists section that contains offset entry tables.
(display_debug_loc): Call the new function.
(display_debug_rnglists_list): Add support for
DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
(display_debug_ranges): Display the contents of the section's
header.
* dwarf.h (struct debug_info): Add loclists_base field.
* testsuite/binutils-all/dw5.W: Update expected output.
* testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
gas/ChangeLog
2022-04-06 Nick Clifton <nickc@redhat.com>
PR 28981
* testsuite/gas/elf/dwarf-5-irp.d: Update expected output.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr28981.patch
Type: text/x-patch
Size: 45050 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20220406/6c3cfb15/attachment-0001.bin>
More information about the Binutils
mailing list