]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/monitor.c
remove pop_target
[thirdparty/binutils-gdb.git] / gdb / monitor.c
index beca4e413e65365107b201bf8bebbeeca17346cd..3eb22493b7622a21c51fab0cc413c5610625ea33 100644 (file)
@@ -877,7 +877,7 @@ monitor_close (void)
 static void
 monitor_detach (struct target_ops *ops, char *args, int from_tty)
 {
-  pop_target ();               /* calls monitor_close to do the real work.  */
+  unpush_target (ops);         /* calls monitor_close to do the real work.  */
   if (from_tty)
     printf_unfiltered (_("Ending remote %s debugging\n"), target_shortname);
 }