summaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-29 18:23:00 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-29 18:23:00 +0000
commit6825a12de5348c4f25ccc69a81d7459b98fe2ae1 (patch)
tree536313510581dd2a5818e854d29a5f2d83877675 /gdb/ada-lang.h
parent843c3d4f1b1cfb512cf636dac7a7c8922cea1f75 (diff)
downloadgdb-6825a12de5348c4f25ccc69a81d7459b98fe2ae1.tar.gz
Make ada_lookup_encoded_symbol "return" a struct ada_symbol_info
This makes ada_lookup_encoded_symbol more consistent with other functions such as ada_lookup_symbol_list, and also makes it clearer in the code using that function that symbol and block are related. gdb/ChangeLog: * ada-lang.c (ada_lookup_encoded_symbol): Now returns void. Replace block_found argument by symbol_info. Adjust implementation accordingly. Add function documentation. (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol. Fix documentation. * ada-lang.h (ada_lookup_encoded_symbol): Update declaration. * ada-exp.y (write_object_renaming): Adjust to new ada_lookup_encoded_symbol API.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index cbca3db3b39..9a93c50dfff 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -235,9 +235,9 @@ extern char *ada_fold_name (const char *);
extern struct symbol *ada_lookup_symbol (const char *, const struct block *,
domain_enum, int *);
-extern struct symbol *
-ada_lookup_encoded_symbol (const char *, const struct block *,
- domain_enum namespace, struct block **);
+extern void ada_lookup_encoded_symbol
+ (const char *name, const struct block *block, domain_enum namespace,
+ struct ada_symbol_info *symbol_info);
extern struct minimal_symbol *ada_lookup_simple_minsym (const char *);