diff options
author | Doug Evans <dje@google.com> | 2012-06-28 18:56:52 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-06-28 18:56:52 +0000 |
commit | a743abeb908daaecb24afa7be5f418ce6f228439 (patch) | |
tree | f042796489910b92d1d4c87884b6d072bf8731f7 /gdb/symtab.c | |
parent | 659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2 (diff) | |
download | gdb-a743abeb908daaecb24afa7be5f418ce6f228439.zip gdb-a743abeb908daaecb24afa7be5f418ce6f228439.tar.gz gdb-a743abeb908daaecb24afa7be5f418ce6f228439.tar.bz2 |
* symtab.c (lookup_symbol_aux_objfile): Use
ALL_OBJFILE_PRIMARY_SYMTABS.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index ee37f30..46d119a 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1519,18 +1519,17 @@ lookup_symbol_aux_objfile (struct objfile *objfile, int block_index, objfile->sf->qf->pre_expand_symtabs_matching (objfile, block_index, name, domain); - ALL_OBJFILE_SYMTABS (objfile, s) - if (s->primary) - { - bv = BLOCKVECTOR (s); - block = BLOCKVECTOR_BLOCK (bv, block_index); - sym = lookup_block_symbol (block, name, domain); - if (sym) - { - block_found = block; - return fixup_symbol_section (sym, objfile); - } - } + ALL_OBJFILE_PRIMARY_SYMTABS (objfile, s) + { + bv = BLOCKVECTOR (s); + block = BLOCKVECTOR_BLOCK (bv, block_index); + sym = lookup_block_symbol (block, name, domain); + if (sym) + { + block_found = block; + return fixup_symbol_section (sym, objfile); + } + } return NULL; } |