From 96998ce73a3e5967481fbeece0327b1c7b3fff05 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 19 Apr 2007 19:35:24 +0000 Subject: * win32-nat.c (win32_detach): Remove delete_command call. Resume inferior with win32_resume instead of win32_continue. --- gdb/win32-nat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/win32-nat.c') diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 3ea0966..28f9b82 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1775,8 +1775,9 @@ win32_detach (char *args, int from_tty) if (has_detach_ability ()) { - delete_command (NULL, 0); - win32_continue (DBG_CONTINUE, -1); + ptid_t ptid = {-1}; + win32_resume (ptid, 0, TARGET_SIGNAL_0); + if (!DebugActiveProcessStop (current_event.dwProcessId)) { error (_("Can't detach process %lu (error %lu)"), -- cgit v1.1