Don't set terminal flags twice in a row
[deliverable/binutils-gdb.git] / gdb / solib.c
index e605e6b4cb28709ca8a03b0c362a6da2a3787c5f..f9f7217b7d6fdd080ff0692ad292552b76f67a7a 100644 (file)
@@ -851,7 +851,7 @@ update_solib_list (int from_tty)
          /* Unless the user loaded it explicitly, free SO's objfile.  */
          if (gdb->objfile && ! (gdb->objfile->flags & OBJF_USERLOADED)
              && !solib_used (gdb))
-           free_objfile (gdb->objfile);
+           delete gdb->objfile;
 
          /* Some targets' section tables might be referring to
             sections from so->abfd; remove them.  */
@@ -1334,7 +1334,7 @@ reload_shared_libraries_1 (int from_tty)
        {
          if (so->objfile && ! (so->objfile->flags & OBJF_USERLOADED)
              && !solib_used (so))
-           free_objfile (so->objfile);
+           delete so->objfile;
          remove_target_sections (so);
          clear_so (so);
        }
This page took 0.024373 seconds and 4 git commands to generate.