Resume inferior with win32_resume instead of win32_continue.
+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.
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)"),
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)"),