summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-09-18 17:39:36 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-09-18 17:39:36 +0000
commit307488da154785cae4c7eb968ba2c3463d1215b2 (patch)
tree35ce3c6016278d174d32259217eecb732db679c6 /gdb/symfile.c
parent2e87708ad3e2398f81f6fc48fba0448f29e3a720 (diff)
downloadgdb-307488da154785cae4c7eb968ba2c3463d1215b2.tar.gz
gdb/
* objfiles.c (free_objfile): Clear SYMFILE_OBJFILE if it is OBJFILE. * rs6000-nat.c (vmap_ldinfo): Only assertion check SYMFILE_OBJFILE now. * symfile.c (syms_from_objfile, symbol_file_clear): Likewise.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 2f3441cbb44..2458201122e 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -786,7 +786,7 @@ syms_from_objfile (struct objfile *objfile,
if (symfile_objfile != NULL)
{
free_objfile (symfile_objfile);
- symfile_objfile = NULL;
+ gdb_assert (symfile_objfile == NULL);
}
/* Currently we keep symbols from the add-symbol-file command.
@@ -1150,7 +1150,7 @@ symbol_file_clear (int from_tty)
descriptors as well. */
no_shared_libraries (NULL, from_tty);
- symfile_objfile = NULL;
+ gdb_assert (symfile_objfile == NULL);
if (from_tty)
printf_unfiltered (_("No symbol file now.\n"));
}