]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix gdb.ada/import.exp when using mold
authorTom Tromey <tromey@adacore.com>
Mon, 13 Jan 2025 17:39:50 +0000 (10:39 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 28 Jan 2025 17:50:50 +0000 (10:50 -0700)
commitae700d95c66340d7e1cfc6b2d72480caed929eb0
tree6d0e5e518d71170d88296f763000c0dc70b97fd5
parentd2030a099be65fdcbc21851aa0fffd6dff362fa1
Fix gdb.ada/import.exp when using mold

We found that the gdb.ada/import.exp test fails when 'mold' is used as
the linker.  This happens because mold decides to mark most of the
symbols in the executable as being file-local.  I tend to think this
choice, while non-traditional, is probably fine.  So, this patch fixes
the problem by changing the relevant Ada code to look for file-local
symbols as well.

Furthermore, there are two overloads of lookup_minimal_symbol_linkage
that both have a final 'bool' parameter -- but with radically
different meanings.  This patch somewhat clears up this confusion as
well.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31378
gdb/dwarf2/ada-imported.c
gdb/minsyms.c
gdb/minsyms.h
gdb/symtab.c