diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-21 05:24:18 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-21 05:24:18 +0000 |
commit | 577e6a8dc55e1bbdb0132a1cefa497deca9dd3ed (patch) | |
tree | 83f928e4c3b5a896c97794d82d640bb153240ab2 | |
parent | 9c38eb65ac759526a693246efbc70d6f4b590a9d (diff) | |
download | gdb-577e6a8dc55e1bbdb0132a1cefa497deca9dd3ed.zip gdb-577e6a8dc55e1bbdb0132a1cefa497deca9dd3ed.tar.gz gdb-577e6a8dc55e1bbdb0132a1cefa497deca9dd3ed.tar.bz2 |
* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
-rw-r--r-- | gdb/xcoffread.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 4d22f94..e93991f 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -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. */ |