aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-05-23 10:30:16 -0600
committerTom Tromey <tromey@adacore.com>2024-06-14 10:56:37 -0600
commit9c23c0df0dc47560bf3e253186e0192bc9630c80 (patch)
tree4cea3ce9ced69d0bc04132df6975519929910014 /gdb/f-lang.h
parentb2cb4b4005e88bf31ced0c899527b374a9abcfca (diff)
downloadgdb-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.h')
-rw-r--r--gdb/f-lang.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/f-lang.h b/gdb/f-lang.h
index c203425..6b3962f 100644
--- a/gdb/f-lang.h
+++ b/gdb/f-lang.h
@@ -140,6 +140,14 @@ public:
/* See language.h. */
+ struct block_symbol lookup_symbol_local
+ (const char *scope,
+ const char *name,
+ const struct block *block,
+ const domain_search_flags domain) const override;
+
+ /* See language.h. */
+
struct block_symbol lookup_symbol_nonlocal
(const char *name, const struct block *block,
const domain_search_flags domain) const override;