* pinfo.cc (pinfo_basic): New class.

(pinfo_basic::pinfo_basic): Define constructor for new class.
(myself): Initialize from myself_initial.
(set_myself): Set pid and progname from already myself_initial.
* strace.cc (strace::strace): Split apart strace::hello.  Send notification to
strace as early as possible.
(strace::hello): Just send clause which describes the current process.  This
can now be preceded by early initialization strace output.
* include/sys/strace.h (strace::strace): Declare new constructor.
This commit is contained in:
Christopher Faylor
2008-12-19 19:09:51 +00:00
parent 887eb76fca
commit 1af6bb97a4
4 changed files with 41 additions and 13 deletions

View File

@ -39,6 +39,7 @@ class strace
void write (unsigned category, const char *buf, int count);
unsigned char _active;
public:
strace ();
int microseconds ();
int version;
int lmicrosec;