Fix the BFD library's find_nearest_line feature to produce consistent results.
authorNick Clifton <nickc@redhat.com>
Thu, 23 Feb 2023 09:44:50 +0000 (09:44 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 23 Feb 2023 09:44:50 +0000 (09:44 +0000)
commite0b74a85b879354d2aa1a6b5026d5de58c78ec45
treedf6e80125aa53469eb30785576ae9f92c61be783
parent456481c6d634819b713eb88fc629a09b4e955aa3
Fix the BFD library's find_nearest_line feature to produce consistent results.

 PR 30150
 * dwarf2.c (comp_unit_contains_address): Renamed to ... (comp_unit_may_contain_address): this,
 and added code to return true if the CU's ranges have not yet been computed.
 (_bfd_dwarf2_find_nearest_line_with_alt): Use the renamed function, simplifying code in the process.
bfd/ChangeLog
bfd/dwarf2.c