* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 21 Oct 1993 05:24:18 +0000 (05:24 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 21 Oct 1993 05:24:18 +0000 (05:24 +0000)
Sort symtabs for this objfile only, not for all objfiles.

gdb/xcoffread.c

index 4d22f94..e93991f 100644 (file)
@@ -2079,10 +2079,13 @@ xcoff_symfile_read (objfile, section_offset, mainline)
   free_debugsection ();
 
   /* Sort symbols alphabetically within each block.  */
-  for (s = objfile -> symtabs; s != NULL; s = s -> next)
-    {
-      sort_symtab_syms (s);
-    }
+  {
+    struct symtab *s;
+    for (s = objfile -> symtabs; s != NULL; s = s -> next)
+      {
+       sort_symtab_syms (s);
+      }
+  }
 
   /* Install any minimal symbols that have been collected as the current
      minimal symbols for this objfile. */