* strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.

This commit is contained in:
Christopher Faylor
2002-02-14 21:51:32 +00:00
parent 3d45652083
commit ed25e9e18c
2 changed files with 5 additions and 1 deletions

View File

@@ -291,7 +291,7 @@ attach_process (pid_t pid)
if (!DebugActiveProcess (child_pid))
error (0, "couldn't attach to pid %d<%d> for debugging", pid, child_pid);
(void) cygwin_internal (CW_STRACE_ON, pid);
(void) cygwin_internal (CW_STRACE_TOGGLE, pid);
printf ("Attached to pid %d (windows pid %u)\n", pid, (unsigned) child_pid);
return;
}