diff options
author | Tom Tromey <tromey@adacore.com> | 2024-05-23 10:30:16 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-14 10:56:37 -0600 |
commit | 9c23c0df0dc47560bf3e253186e0192bc9630c80 (patch) | |
tree | 4cea3ce9ced69d0bc04132df6975519929910014 /gdb/f-lang.c | |
parent | b2cb4b4005e88bf31ced0c899527b374a9abcfca (diff) | |
download | gdb-9c23c0df0dc47560bf3e253186e0192bc9630c80.zip gdb-9c23c0df0dc47560bf3e253186e0192bc9630c80.tar.gz gdb-9c23c0df0dc47560bf3e253186e0192bc9630c80.tar.bz2 |
Introduce language_defn::lookup_symbol_local
This introduces the new method language_defn::lookup_symbol_local, and
then changes lookup_symbol_local to use it. This removes an explicit
language check from this function, and makes it easier for other
languages to hook into this code.
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r-- | gdb/f-lang.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 58f35bf..db96753 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -1712,6 +1712,17 @@ f_language::search_name_hash (const char *name) const /* See language.h. */ struct block_symbol +f_language::lookup_symbol_local (const char *scope, + const char *name, + const struct block *block, + const domain_search_flags domain) const +{ + return cp_lookup_symbol_imports (scope, name, block, domain); +} + +/* See language.h. */ + +struct block_symbol f_language::lookup_symbol_nonlocal (const char *name, const struct block *block, const domain_search_flags domain) const |