From 4eeaa230f415805552e4fdb4869c149175a6d7f0 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 5 Mar 2013 21:15:34 +0000 Subject: * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents of old ada_lookup_symbol_list. In !full_search case, don't search superblocks. (ada_lookup_symbol_list): Delete arg full_search, all callers updated. Call ada_lookup_symbol_list_worker. (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker. * ada-lang.h (ada_lookup_symbol_list): Update. * language.h (language_defn): Update comment for la_iterate_over_symbols. * linespec.c (iterate_over_file_blocks): New function. (iterate_over_all_matching_symtabs): Call it. (lookup_prefix_sym): Ditto. (get_current_search_block): New function. (get_search_block): Delete. (find_label_symbols): Call get_current_search_block. (add_matching_symbols_to_info): Call iterate_over_file_blocks. * symtab.c (iterate_over_symbols): Don't search superblocks. --- gdb/ada-exp.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/ada-exp.y') diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index e4bcfb3..d9fa9ac 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1025,7 +1025,7 @@ block_lookup (struct block *context, char *raw_name) else name = ada_encode (raw_name); - nsyms = ada_lookup_symbol_list (name, context, VAR_DOMAIN, &syms, 1); + nsyms = ada_lookup_symbol_list (name, context, VAR_DOMAIN, &syms); if (context == NULL && (nsyms == 0 || SYMBOL_CLASS (syms[0].sym) != LOC_BLOCK)) symtab = lookup_symtab (name); @@ -1282,7 +1282,7 @@ write_var_or_type (const struct block *block, struct stoken name0) encoded_name[tail_index] = '\0'; nsyms = ada_lookup_symbol_list (encoded_name, block, - VAR_DOMAIN, &syms, 1); + VAR_DOMAIN, &syms); encoded_name[tail_index] = terminator; /* A single symbol may rename a package or object. */ @@ -1430,7 +1430,7 @@ write_name_assoc (struct stoken name) { struct ada_symbol_info *syms; int nsyms = ada_lookup_symbol_list (name.ptr, expression_context_block, - VAR_DOMAIN, &syms, 1); + VAR_DOMAIN, &syms); if (nsyms != 1 || SYMBOL_CLASS (syms[0].sym) == LOC_TYPEDEF) write_exp_op_with_string (OP_NAME, name); else -- cgit v1.1