diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-09-18 17:33:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-09-18 17:33:51 +0000 |
commit | adb7f3388f557308fab00d544185922035efa8f0 (patch) | |
tree | 9a72462bc520831ecd495d4683d819db9f2fd77f /gdb/symfile.c | |
parent | 924731f649dfb01afee8f46738ed2de7436d98d6 (diff) | |
download | gdb-adb7f3388f557308fab00d544185922035efa8f0.zip gdb-adb7f3388f557308fab00d544185922035efa8f0.tar.gz gdb-adb7f3388f557308fab00d544185922035efa8f0.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 2f3441c..2458201 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")); } |