mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* sigproc.cc (wait_sig): Make sure that strace is activated on __SIGSTRACE by
calling new strace::activate function. * strace.cc (strace::activate): Rename from strace::strace. * strace.h (strace::activate): Define new function. (strace::strace): Call activate.
This commit is contained in:
parent
e446d6d0f4
commit
bc3f0d64c9
@ -1,3 +1,11 @@
|
|||||||
|
2010-03-31 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* sigproc.cc (wait_sig): Make sure that strace is activated on
|
||||||
|
__SIGSTRACE by calling new strace::activate function.
|
||||||
|
* strace.cc (strace::activate): Rename from strace::strace.
|
||||||
|
* strace.h (strace::activate): Define new function.
|
||||||
|
(strace::strace): Call activate.
|
||||||
|
|
||||||
2010-03-31 Christopher Faylor <me+cygwin@cgf.cx>
|
2010-03-31 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* fhandler.h (fhandler_base_overlapped): Temporarily (?) make
|
* fhandler.h (fhandler_base_overlapped): Temporarily (?) make
|
||||||
|
@ -39,7 +39,8 @@ class strace
|
|||||||
void write (unsigned category, const char *buf, int count);
|
void write (unsigned category, const char *buf, int count);
|
||||||
unsigned char _active;
|
unsigned char _active;
|
||||||
public:
|
public:
|
||||||
strace ();
|
void activate ();
|
||||||
|
strace () {activate ();}
|
||||||
int microseconds ();
|
int microseconds ();
|
||||||
int version;
|
int version;
|
||||||
int lmicrosec;
|
int lmicrosec;
|
||||||
|
@ -1224,6 +1224,7 @@ wait_sig (VOID *)
|
|||||||
talktome (&pack.si);
|
talktome (&pack.si);
|
||||||
break;
|
break;
|
||||||
case __SIGSTRACE:
|
case __SIGSTRACE:
|
||||||
|
strace.activate ();
|
||||||
strace.hello ();
|
strace.hello ();
|
||||||
break;
|
break;
|
||||||
case __SIGPENDING:
|
case __SIGPENDING:
|
||||||
|
@ -31,7 +31,8 @@ class strace NO_COPY strace;
|
|||||||
|
|
||||||
#ifndef NOSTRACE
|
#ifndef NOSTRACE
|
||||||
|
|
||||||
strace::strace ()
|
void
|
||||||
|
strace::activate ()
|
||||||
{
|
{
|
||||||
if (!dynamically_loaded && !_active && being_debugged ())
|
if (!dynamically_loaded && !_active && being_debugged ())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user