aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-25 13:32:20 -0600
committerTom Tromey <tom@tromey.com>2018-06-04 15:33:28 -0600
commit54d343a24019367e85bb2e90966f2da483868637 (patch)
tree9aae0197236294bfc9eac107aa2feb505145565a /gdb/ada-lang.h
parent178d6a638693d1a7a66b0553f16b1df95b4f27ee (diff)
downloadgdb-54d343a24019367e85bb2e90966f2da483868637.zip
gdb-54d343a24019367e85bb2e90966f2da483868637.tar.gz
gdb-54d343a24019367e85bb2e90966f2da483868637.tar.bz2
Remove last Ada cleanups
This removes the last cleanups from the Ada code by changing ada_lookup_symbol_list's out parameter to be a std::vector, and then fixing up the fallout. This is a relatively shallow change. Deeper changes are possible, for example (1) changing various other functions to accept a vector rather than a pointer, or (2) changing ada_lookup_symbol_list to return the vector and omitting the length entirely. Tested by the buildbot, but I'll wait for Joel to test these as well. gdb/ChangeLog 2018-06-04 Tom Tromey <tom@tromey.com> * ada-lang.h (ada_lookup_symbol_list): Update. * ada-lang.c (resolve_subexp): Update. (symbols_are_identical_enums): Change type of syms. Remove nsyms parameter. (remove_extra_symbols, remove_irrelevant_renamings): Likewise. (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change results parameter to std::vector. (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): Update. * ada-exp.y (block_lookup): Update. (select_possible_type_sym): Change type of syms. Remove nsyms parameter. (write_var_or_type, write_name_assoc): Update.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index a4192fc..8e7bd50 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -232,7 +232,8 @@ extern const char *ada_decode (const char*);
extern enum language ada_update_initial_language (enum language);
extern int ada_lookup_symbol_list (const char *, const struct block *,
- domain_enum, struct block_symbol**);
+ domain_enum,
+ std::vector<struct block_symbol> *);
extern char *ada_fold_name (const char *);