aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2004-06-08 08:42:04 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2004-06-08 08:42:04 +0000
commitf26caa111510d587da5a777082803dedef2f42eb (patch)
tree0aecbf277e1840f4fc11fc5eaa7e1264627da76c /gdb/ada-lang.h
parenteef0f186e0e66caa02fbaa192a4074e00b960d91 (diff)
downloadgdb-f26caa111510d587da5a777082803dedef2f42eb.zip
gdb-f26caa111510d587da5a777082803dedef2f42eb.tar.gz
gdb-f26caa111510d587da5a777082803dedef2f42eb.tar.bz2
2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
* ada-lang.c (lookup_symbol_in_language): New function to allow re-use of another language's symbol lookup code. (Placed here temporarily while Ada support is being integrated into the public tree). (restore_language): New auxiliary function for lookup_symbol_in_language. * ada-lang.h (lookup_symbol_in_language): Declare (Placed here temporarily while Ada support is being integrated into the public tree).
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 0ec47b4..0381eff 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -393,4 +393,15 @@ extern void ada_find_printable_frame (struct frame_info *fi);
extern void ada_reset_thread_registers (void);
+/* Look up a symbol by name using the search conventions of
+ a specific language (optional block, optional symtab).
+ FIXME: Should be symtab.h. */
+
+extern struct symbol *lookup_symbol_in_language (const char *,
+ const struct block *,
+ domain_enum,
+ enum language,
+ int *,
+ struct symtab **);
+
#endif