diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/external.cc | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/cygwin.h | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 86d8583..8224c9d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2002-02-14 Christopher Faylor <cgf@redhat.com> + * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE. + * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE. + +2002-02-14 Christopher Faylor <cgf@redhat.com> + * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to asm. * external.cc (cygwin_internal): Change CW_STRACE_ON to diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 3892559..06f131f 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -222,6 +222,11 @@ cygwin_internal (cygwin_getinfo_types t, ...) } } + case CW_STRACE_ACTIVE: + { + return strace.active; + } + case CW_CYGWIN_PID_TO_WINPID: { pinfo p (va_arg (arg, pid_t)); diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index b8beaa6..de3b3d4 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -68,6 +68,7 @@ typedef enum CW_SET_CYGWIN_REGISTRY_NAME, CW_GET_CYGWIN_REGISTRY_NAME, CW_STRACE_TOGGLE, + CW_STRACE_ACTIVE, CW_CYGWIN_PID_TO_WINPID } cygwin_getinfo_types; |