From a743abeb908daaecb24afa7be5f418ce6f228439 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 28 Jun 2012 18:56:52 +0000 Subject: [PATCH] * symtab.c (lookup_symbol_aux_objfile): Use ALL_OBJFILE_PRIMARY_SYMTABS. --- gdb/ChangeLog | 3 +++ gdb/symtab.c | 23 +++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44eaa19..e17c44e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-06-28 Doug Evans + * symtab.c (lookup_symbol_aux_objfile): Use + ALL_OBJFILE_PRIMARY_SYMTABS. + * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type". 2012-06-28 Jan Kratochvil 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; } -- 2.7.4