* MAINTAINERS: Add myself under Write After Approval.
[deliverable/binutils-gdb.git] / gdb / symfile.c
index 2f3441cbb44738b91b1a0b3d70f9501fbdcd9e52..2458201122ed9fc7bb2a986c0f5ffcbab9d46f1a 100644 (file)
@@ -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"));
 }
This page took 0.02383 seconds and 4 git commands to generate.