diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-21 16:55:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-21 16:55:49 +0000 |
commit | 113096576766ad92cfa059437ea6d370ceecd0cf (patch) | |
tree | b8ec169c01ccb3d15cc19117b1b4845566a12b9c /gdb/ada-lang.c | |
parent | cb1df416fb6d2cc4837a8f81c5f102821c02db93 (diff) | |
download | gdb-113096576766ad92cfa059437ea6d370ceecd0cf.zip gdb-113096576766ad92cfa059437ea6d370ceecd0cf.tar.gz gdb-113096576766ad92cfa059437ea6d370ceecd0cf.tar.bz2 |
* objfiles.h (ALL_PRIMARY_SYMTABS): Define.
* ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
(ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
* cp-support.c (make_symbol_overload_list_qualified): Likewise.
* symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
(basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
(make_symbol_completion_list): Likewise.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 982a4bb..79a5460 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4120,7 +4120,7 @@ symtab_for_sym (struct symbol *sym) struct dict_iterator iter; int j; - ALL_SYMTABS (objfile, s) + ALL_PRIMARY_SYMTABS (objfile, s) { switch (SYMBOL_CLASS (sym)) { @@ -4549,11 +4549,9 @@ ada_lookup_symbol_list (const char *name0, const struct block *block0, /* Now add symbols from all global blocks: symbol tables, minimal symbol tables, and psymtab's. */ - ALL_SYMTABS (objfile, s) + ALL_PRIMARY_SYMTABS (objfile, s) { QUIT; - if (!s->primary) - continue; bv = BLOCKVECTOR (s); block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); ada_add_block_symbols (&symbol_list_obstack, block, name, namespace, @@ -4619,11 +4617,9 @@ ada_lookup_symbol_list (const char *name0, const struct block *block0, if (num_defns_collected (&symbol_list_obstack) == 0) { - ALL_SYMTABS (objfile, s) + ALL_PRIMARY_SYMTABS (objfile, s) { QUIT; - if (!s->primary) - continue; bv = BLOCKVECTOR (s); block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); ada_add_block_symbols (&symbol_list_obstack, block, name, namespace, @@ -4703,7 +4699,7 @@ ada_lookup_symbol (const char *name, const struct block *block0, /* Search the list of symtabs for one which contains the address of the start of this block. */ - ALL_SYMTABS (objfile, s) + ALL_PRIMARY_SYMTABS (objfile, s) { bv = BLOCKVECTOR (s); b = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); |