* 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.
This commit is contained in:
Jan Kratochvil
2009-09-18 17:33:51 +00:00
parent 924731f649
commit adb7f3388f
4 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,10 @@
2009-09-19 Ulrich Weigand <uweigand@de.ibm.com> 2009-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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.
2009-09-18 Ulrich Weigand <uweigand@de.ibm.com>
* rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double * rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double
union member. union member.

View File

@@ -459,8 +459,8 @@ free_objfile (struct objfile *objfile)
unlink_objfile (objfile); unlink_objfile (objfile);
/* If we are going to free the runtime common objfile, mark it if (objfile == symfile_objfile)
as unallocated. */ symfile_objfile = NULL;
if (objfile == rt_common_objfile) if (objfile == rt_common_objfile)
rt_common_objfile = NULL; rt_common_objfile = NULL;

View File

@@ -915,7 +915,7 @@ If in fact that file has symbols which the mapped files listed by\n\
symbols to the proper address)."), symbols to the proper address)."),
symfile_objfile->name); symfile_objfile->name);
free_objfile (symfile_objfile); free_objfile (symfile_objfile);
symfile_objfile = NULL; gdb_assert (symfile_objfile == NULL);
} }
breakpoint_re_set (); breakpoint_re_set ();
} }

View File

@@ -786,7 +786,7 @@ syms_from_objfile (struct objfile *objfile,
if (symfile_objfile != NULL) if (symfile_objfile != NULL)
{ {
free_objfile (symfile_objfile); free_objfile (symfile_objfile);
symfile_objfile = NULL; gdb_assert (symfile_objfile == NULL);
} }
/* Currently we keep symbols from the add-symbol-file command. /* Currently we keep symbols from the add-symbol-file command.
@@ -1150,7 +1150,7 @@ symbol_file_clear (int from_tty)
descriptors as well. */ descriptors as well. */
no_shared_libraries (NULL, from_tty); no_shared_libraries (NULL, from_tty);
symfile_objfile = NULL; gdb_assert (symfile_objfile == NULL);
if (from_tty) if (from_tty)
printf_unfiltered (_("No symbol file now.\n")); printf_unfiltered (_("No symbol file now.\n"));
} }