* symtab.c (lookup_symbol_aux_objfile): Use
authorDoug Evans <dje@google.com>
Thu, 28 Jun 2012 18:56:52 +0000 (18:56 +0000)
committerDoug Evans <dje@google.com>
Thu, 28 Jun 2012 18:56:52 +0000 (18:56 +0000)
ALL_OBJFILE_PRIMARY_SYMTABS.

gdb/ChangeLog
gdb/symtab.c

index 44eaa19..e17c44e 100644 (file)
@@ -1,5 +1,8 @@
 2012-06-28  Doug Evans  <dje@google.com>
 
+       * 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  <jan.kratochvil@redhat.com>
index ee37f30..46d119a 100644 (file)
@@ -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;
 }