* win32-nat.c (win32_detach): Remove delete_command call.
authorPedro Alves <palves@redhat.com>
Thu, 19 Apr 2007 19:35:24 +0000 (19:35 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 19 Apr 2007 19:35:24 +0000 (19:35 +0000)
Resume inferior with win32_resume instead of win32_continue.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index b2c35fe81ffa70e24fa5c7291b8f57659f8c8aab..cdf3192d3b037de45b22fce0b419afc4d85345c8 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * win32-nat.c (win32_detach): Remove delete_command call.
+       Resume inferior with win32_resume instead of win32_continue.
+
 2007-04-19  Jerome Guitton  <guitton@adacore.com>
 
        * ser-mingw.c (fd_is_file): New function.
index 3ea09662bfb916652da15a4512e0b34fade9aca5..28f9b82978507fde6793b9c8363e84695c5db7fe 100644 (file)
@@ -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)"),
index 3ea09662bfb916652da15a4512e0b34fade9aca5..28f9b82978507fde6793b9c8363e84695c5db7fe 100644 (file)
@@ -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)"),
This page took 0.028998 seconds and 4 git commands to generate.