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/language.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/language.h') diff --git a/gdb/language.h b/gdb/language.h index b24caec..b191b36 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -326,9 +326,9 @@ struct language_defn /* Find all symbols in the current program space matching NAME in DOMAIN, according to this language's rules. - The search starts with BLOCK. This function iterates upward - through blocks. When the outermost block has been finished, - the function returns. + The search is done in BLOCK only. + The caller is responsible for iterating up through superblocks + if desired. For each one, call CALLBACK with the symbol and the DATA argument. If CALLBACK returns zero, the iteration ends at that -- cgit v1.1