summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-03-29 01:09:27 +0000
committerMichael Snyder <msnyder@specifix.com>2002-03-29 01:09:27 +0000
commitae70cd0df74cc1c54ee221f51e51a43bbd814f39 (patch)
tree1a25aaf8c620b8ba39762f23f86457c4f864a029 /gdb/symfile.c
parent2a5b89d65212bf8fb9335bb399cfd301c989d1fb (diff)
downloadgdb-ae70cd0df74cc1c54ee221f51e51a43bbd814f39.tar.gz
2002-03-28 Michael Snyder <msnyder@redhat.com>
* symfile.c (symbol_file_add): Move test for null symbols to later.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index cd9133b27f6..d2d4e620e47 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -861,9 +861,6 @@ symbol_file_add (char *name, int from_tty, struct section_addr_info *addrs,
syms_from_objfile (objfile, addrs, mainline, from_tty);
}
- if (objfile->sf == NULL)
- return objfile; /* No symbols. */
-
/* We now have at least a partial symbol table. Check to see if the
user requested that all symbols be read on initial access via either
the gdb startup command line or on a per symbol file basis. Expand
@@ -897,6 +894,9 @@ symbol_file_add (char *name, int from_tty, struct section_addr_info *addrs,
}
}
+ if (objfile->sf == NULL)
+ return objfile; /* No symbols. */
+
new_symfile_objfile (objfile, mainline, from_tty);
if (target_new_objfile_hook)