Allow making GDB not automatically connect to the native target.
[deliverable/binutils-gdb.git] / gdb / go32-nat.c
index e17707ac194d910fb3cd1e1dddd877ff6e07b364..77843ea05c6384ce1e6bd3d764ea0ff11d652ba7 100644 (file)
@@ -710,7 +710,8 @@ go32_create_inferior (struct target_ops *ops, char *exec_file,
   inf = current_inferior ();
   inferior_appeared (inf, SOME_PID);
 
-  push_target (ops);
+  if (!target_is_pushed (ops))
+    push_target (ops);
 
   add_thread_silent (inferior_ptid);
 
@@ -744,8 +745,8 @@ go32_mourn_inferior (struct target_ops *ops)
   delete_thread_silent (ptid);
   prog_has_started = 0;
 
-  unpush_target (ops);
   generic_mourn_inferior ();
+  inf_child_maybe_unpush_target (ops);
 }
 
 /* Hardware watchpoint support.  */
This page took 0.041829 seconds and 4 git commands to generate.