forked from Imagelibrary/binutils-gdb
2002-03-28 Michael Snyder <msnyder@redhat.com>
* symfile.c (symbol_file_add): Move test for null symbols to later.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user