diff options
author | Christopher Faylor <me@cgf.cx> | 2002-02-14 21:31:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-02-14 21:31:23 +0000 |
commit | 3d4565208313226900b47c9789d47301ae5c70df (patch) | |
tree | 39fd76ba803f64988e5f6d4d535ccfa6c0b84bf5 | |
parent | 907dc7d0c9f64d95b6d4da91dab6601d0e6054ec (diff) | |
download | newlib-3d4565208313226900b47c9789d47301ae5c70df.zip newlib-3d4565208313226900b47c9789d47301ae5c70df.tar.gz newlib-3d4565208313226900b47c9789d47301ae5c70df.tar.bz2 |
* include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
* external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
-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; |