aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-21 04:41:56 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-21 04:41:56 +0000
commit8f6960c90e6df0f0bc5e2ac1c52d82545557de2f (patch)
treeac07ad2bc5f8a5ab95af67a68588ec60bda2d5e2 /gdb/xcoffread.c
parentb438af469456d8bd1f0d721fe5bde42207f37059 (diff)
downloadgdb-8f6960c90e6df0f0bc5e2ac1c52d82545557de2f.zip
gdb-8f6960c90e6df0f0bc5e2ac1c52d82545557de2f.tar.gz
gdb-8f6960c90e6df0f0bc5e2ac1c52d82545557de2f.tar.bz2
* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles. * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 3ecdf18..4d22f94 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2079,7 +2079,10 @@ xcoff_symfile_read (objfile, section_offset, mainline)
free_debugsection ();
/* Sort symbols alphabetically within each block. */
- sort_all_symtab_syms ();
+ 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. */