Update gdb.base/default.exp for GDB 10
[deliverable/binutils-gdb.git] / gdb / target.c
index 78bdfeb49a4a034a7a51f1b19cd044fac5d383a7..5a3764e5e8b47aabf1a073ec1768d81372912ad1 100644 (file)
@@ -140,7 +140,7 @@ static int show_memory_breakpoints = 0;
 
 /* These globals control whether GDB attempts to perform these
    operations; they are useful for targets that need to prevent
-   inadvertant disruption, such as in non-stop mode.  */
+   inadvertent disruption, such as in non-stop mode.  */
 
 bool may_write_registers = true;
 
@@ -562,11 +562,7 @@ target_stack::push (target_ops *t)
   strata stratum = t->stratum ();
 
   if (m_stack[stratum] != NULL)
-    {
-      target_ops *prev = m_stack[stratum];
-      m_stack[stratum] = NULL;
-      target_close (prev);
-    }
+    unpush (m_stack[stratum]);
 
   /* Now add the new one.  */
   m_stack[stratum] = t;
This page took 0.025145 seconds and 4 git commands to generate.