diff options
author | Nick Clifton <nickc@redhat.com> | 2022-04-06 14:43:37 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-04-06 14:43:37 +0100 |
commit | 19c26da69d68d5d863f37c06ad73ab6292d02ffa (patch) | |
tree | d508d13be6bb9ad376d577ca371fc1fe9971104c /gas | |
parent | a01567f4f7fbbc6ce1492b359c762fcf39e71b4b (diff) | |
download | gdb-19c26da69d68d5d863f37c06ad73ab6292d02ffa.zip gdb-19c26da69d68d5d863f37c06ad73ab6292d02ffa.tar.gz gdb-19c26da69d68d5d863f37c06ad73ab6292d02ffa.tar.bz2 |
Add code to display the contents of .debug_loclists sections which contain offset entry tables.
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/dwarf-5-irp.d | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c6f177b..0a88e7f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2022-04-06 Nick Clifton <nickc@redhat.com> + + PR 28981 + * testsuite/gas/elf/dwarf-5-irp.d: Update expected output. + 2022-03-21 Nick Clifton <nickc@redhat.com> PR 28791 diff --git a/gas/testsuite/gas/elf/dwarf-5-irp.d b/gas/testsuite/gas/elf/dwarf-5-irp.d index d43a660..a0ab833 100644 --- a/gas/testsuite/gas/elf/dwarf-5-irp.d +++ b/gas/testsuite/gas/elf/dwarf-5-irp.d @@ -87,7 +87,7 @@ Contents of the \.debug_aranges section: 0+ 0+ ? Contents of the \.debug_rnglists section: - +#... Offset +Begin +End [0-9a-f]+ 0+ [0-9a-f]+ ? [0-9a-f]+ 0+ [0-9a-f]+ ? |