Fix the display of the idnex values for DW_FORM_loclistx and DW_FORM_rnglistx. Corre...
authorNick Clifton <nickc@redhat.com>
Tue, 28 Jun 2022 11:30:19 +0000 (12:30 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 28 Jun 2022 11:30:19 +0000 (12:30 +0100)
commitdbcbf67ca565ec29f13a2302dcdf9b01ef7832ca
treef6a722c2ab37987c7e093ed3bd20269a43ba3c60
parentd0e0f9c87a3eb141f2036c3ca1569ce7ba2d9ff3
Fix the display of the idnex values for DW_FORM_loclistx and DW_FORM_rnglistx.  Correct the display of .debug.loclists sections.

PR 29267
* dwarf.c (display_debug_rnglists): New function, broken out of..
(display_debug_ranges): ... here.
(read_and_display_attr_value): Correct calculation of index
displayed for DW_FORM_loclistx and DW_FORM_rnglistx.
* testsuite/binutils-all/x86-64/pr26808.dump: Update expected
output.
binutils/ChangeLog
binutils/dwarf.c
binutils/testsuite/binutils-all/x86-64/pr26808.dump