2002-03-28 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 29 Mar 2002 01:09:27 +0000 (01:09 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 29 Mar 2002 01:09:27 +0000 (01:09 +0000)
* symfile.c (symbol_file_add): Move test for null symbols to later.

gdb/ChangeLog
gdb/symfile.c

index 5bedbdade2e2bbf868a2a2f8aba682d39fe46db6..81e7369f05869d92afe08fdbaad5e7c8252d6205 100644 (file)
@@ -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:
index cd9133b27f61c90fd53c0924be14fc011bddff37..d2d4e620e476eed0bd509496cd671279285c5f72 100644 (file)
@@ -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)
This page took 0.029716 seconds and 4 git commands to generate.