* 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 44eaa19d90ce0ae6c8a3be8f5430b68bf105d915..e17c44eee8ec495cc9d22392c031ecf8064f17e6 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 ee37f3075c322507f9dc97f9af24c3d66825f676..46d119a5239a46952cabd25a0896be934ec3105c 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;
 }