OSDN Git Service

* strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
authorcgf <cgf>
Thu, 14 Feb 2002 21:51:32 +0000 (21:51 +0000)
committercgf <cgf>
Thu, 14 Feb 2002 21:51:32 +0000 (21:51 +0000)
winsup/utils/ChangeLog
winsup/utils/strace.cc

index c986122..4ba9f33 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-14  Christopher Faylor  <cgf@redhat.com>
+
+       * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
+
 2002-01-31  Corinna Vinschen  <corinna@vinschen.de>
 
        * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
index 5ce9d0d..a9f3762 100644 (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;
 }