When loading separate debug info files, also attempt to locate a file based upon...
authorNick Clifton <nickc@redhat.com>
Thu, 16 Dec 2021 14:05:40 +0000 (14:05 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 16 Dec 2021 14:05:40 +0000 (14:05 +0000)
commit61ab1364c7efa3934e0ca62af444e6e6e34f219e
tree19c55de789643442ba201ef5772b9bce33097a4e
parenta2b1ea81bacc044a721092484c7cdcb600bcf9ce
When loading separate debug info files, also attempt to locate a file based upon the build-id.

PR 28697
* dwarf.c (load_build_id_debug_file): New function.
(try_build_id_prefix): New function.
(check_for_and_load_links): Call load_build_id_debug_file.
(debug_displays): Add entry for .note.gnu.build-id.
* dwarf.h (enum dwarf_section_display_enum): Add
note_gnu_build_id.
* testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
Fix regexp for loads via debuglink section.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/testsuite/binutils-all/debuginfod.exp