diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-16 23:52:04 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 10:38:29 -0400 |
commit | 2e7c4d0fe5b7d28af9c6ba94e76c42fe8ca08eb7 (patch) | |
tree | 82a10a850a14715d8ba64f23c6653e0d3bd530f8 /gdb/dwarf2/ada-imported.c | |
parent | 3b996cc7aee674615de57126ad4837daa4f5ac94 (diff) | |
download | gdb-2e7c4d0fe5b7d28af9c6ba94e76c42fe8ca08eb7.zip gdb-2e7c4d0fe5b7d28af9c6ba94e76c42fe8ca08eb7.tar.gz gdb-2e7c4d0fe5b7d28af9c6ba94e76c42fe8ca08eb7.tar.bz2 |
gdb: add program_space parameter to lookup_minimal_symbol_linkage
Make the current_program_space reference bubble up one level.
Change-Id: Ic349dc96b7d375ad7c66022d84657136f0de8c87
Reviewed-by: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/dwarf2/ada-imported.c')
-rw-r--r-- | gdb/dwarf2/ada-imported.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2/ada-imported.c b/gdb/dwarf2/ada-imported.c index 9ec0d51..eabbab1 100644 --- a/gdb/dwarf2/ada-imported.c +++ b/gdb/dwarf2/ada-imported.c @@ -20,6 +20,7 @@ #include "symtab.h" #include "value.h" #include "dwarf2/loc.h" +#include "objfiles.h" /* Helper to get the imported symbol's real name. */ static const char * @@ -34,7 +35,8 @@ static struct value * ada_imported_read_variable (struct symbol *symbol, const frame_info_ptr &frame) { const char *name = get_imported_name (symbol); - bound_minimal_symbol minsym = lookup_minimal_symbol_linkage (name, false); + bound_minimal_symbol minsym + = lookup_minimal_symbol_linkage (symbol->objfile ()->pspace (), name, false); if (minsym.minsym == nullptr) error (_("could not find imported name %s"), name); return value_at (symbol->type (), minsym.value_address ()); |