aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/ada-imported.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-11-16 18:02:14 -0700
committerTom Tromey <tom@tromey.com>2024-01-28 10:58:16 -0700
commit54d186cf6554099057d76c7a4df730423eefe977 (patch)
treea86127bf5778dacd1f21124ab9a9a17014c3e99e /gdb/dwarf2/ada-imported.c
parent974b36c2ae2b351d022cc62579656f722da6e17a (diff)
downloadgdb-54d186cf6554099057d76c7a4df730423eefe977.zip
gdb-54d186cf6554099057d76c7a4df730423eefe977.tar.gz
gdb-54d186cf6554099057d76c7a4df730423eefe977.tar.bz2
Simplify some symbol searches in Ada code
This changes some of the Ada code to simplify symbol searches. For example, if a function is being looked for, the search is narrowed to use SEARCH_FUNCTION_DOMAIN rather than SEARCH_VFT. In one spot, a search of the "struct" domain is removed, because Ada does not have a tag domain.
Diffstat (limited to 'gdb/dwarf2/ada-imported.c')
-rw-r--r--gdb/dwarf2/ada-imported.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/ada-imported.c b/gdb/dwarf2/ada-imported.c
index 21f81bb..1a0bc1d 100644
--- a/gdb/dwarf2/ada-imported.c
+++ b/gdb/dwarf2/ada-imported.c
@@ -103,7 +103,7 @@ ada_alias_get_block_value (const struct symbol *sym)
{
const char *name = get_imported_name (sym);
block_symbol real_symbol = lookup_global_symbol (name, nullptr,
- SEARCH_VFT);
+ SEARCH_FUNCTION_DOMAIN);
if (real_symbol.symbol == nullptr)
error (_("could not find alias '%s' for function '%s'"),
name, sym->print_name ());