readelf/objdump: Handle DWARF info with mixed types of range section.
authorNick Clifton <nickc@redhat.com>
Wed, 23 Aug 2023 10:36:25 +0000 (11:36 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 23 Aug 2023 10:36:25 +0000 (11:36 +0100)
commit589d38af0de46f3325747a9e29e008c79e41e664
treeed52625954a8bf3df776b609664c64c8c4ea8931
parent3ce8f906be7a55d8c0375e6d360cc53b456d86ae
readelf/objdump: Handle DWARF info with mixed types of range section.

  PR 30791
  * dwarf.h (debug_info): Add range_versions field.
  * dwarf.c (read_and_display_attr_value): When recording a range arribute also ecord the dwarf version number.
  (is_range_list_for_this_section): New function.
  (display_debug_ranges): Only show debug ranges whose version is suitable for the secction being displayed.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h