aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-03-29 01:09:27 +0000
committerMichael Snyder <msnyder@vmware.com>2002-03-29 01:09:27 +0000
commit109f874e4612d6442b12eb78fccd5579585d7d07 (patch)
treee0fa3f2c46a0b254d937a95c31dfc52282813cba
parent35ad82f95b2dca3649115831457cfd77df4200b7 (diff)
downloadfsf-binutils-gdb-109f874e4612d6442b12eb78fccd5579585d7d07.zip
fsf-binutils-gdb-109f874e4612d6442b12eb78fccd5579585d7d07.tar.gz
fsf-binutils-gdb-109f874e4612d6442b12eb78fccd5579585d7d07.tar.bz2
2002-03-28 Michael Snyder <msnyder@redhat.com>
* symfile.c (symbol_file_add): Move test for null symbols to later.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/symfile.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5bedbda..81e7369 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-28 Michael Snyder <msnyder@redhat.com>
+
+ * symfile.c (symbol_file_add): Move test for null symbols to later.
+
2002-03-27 Andrew Cagney <ac131313@redhat.com>
From veksler at il.ibm.com:
diff --git a/gdb/symfile.c b/gdb/symfile.c
index cd9133b..d2d4e62 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)