diff options
author | Christopher Faylor <me@cgf.cx> | 2000-02-28 08:05:33 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-02-28 08:05:33 +0300 |
commit | d542443ea4e9615e66b729fc4a93ec72a5305fff (patch) | |
tree | c006010e903c36adb0a74879f0f2999224ee1c30 /winsup/cygwin/pinfo.cc | |
parent | 1dc94f73700244d77cf9ceb5d4e65fd71a2f65f0 (diff) |
* dcrt0.cc (set_os_type): Record OS name string.
(getprogname): Eliminate obsolete function.
(dll_crt0_1): Move initial strace initialization output to set_myself.
* exceptions.cc (interruptible): Add debugging output.
(interrupt_setup): New function.
(interrupt_now): Use interrupt_setup to set up common interrupt handler stuff.
(interrupt_on_return): Ditto.
(call_handler): Move signal_arrived arm and clear threads to region where
signalled thread is suspended or suffer races.
* pinfo.cc (set_myself): Output interesting information when strace is first
initialized. Initialize progname here.
* sigproc.cc (sig_dispatch_pending): Modify to ensure that flush signal are
sent synchronously.
* strace.cc (strace_vsprintf): Move code into strace program.
* uname.cc (uname): Use 'osname' global to construct cygwin name + Windows type
+ version.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 789a47920..b4873c544 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -46,6 +46,24 @@ set_myself (pinfo *p) __small_sprintf (buf, "cYg%8x %x %x", _STRACE_INTERFACE_ACTIVATE_ADDR, &strace_active); OutputDebugString (buf); + + (void) GetModuleFileName (NULL, myself->progname, + sizeof(myself->progname)); + if (strace_active) + { + extern char osname[]; + strace_printf (1, "**********************************************"); + strace_printf (1, "Program name: %s", myself->progname); + strace_printf (1, "App version: %d.%d, api: %d.%d", + user_data->dll_major, user_data->dll_minor, + user_data->api_major, user_data->api_minor); + strace_printf (1, "DLL version: %d.%d, api: %d.%d", + cygwin_version.dll_major, cygwin_version.dll_minor, + cygwin_version.api_major, cygwin_version.api_minor); + strace_printf (1, "OS version: Windows %s", osname); + strace_printf (1, "**********************************************"); + } + return myself; } @@ -77,9 +95,6 @@ pinfo_init (LPBYTE info) if (!set_myself (cygwin_shared->p.allocate_pid ())) api_fatal ("No more processes"); - - (void) GetModuleFileName (NULL, myself->progname, - sizeof(myself->progname)); myself->ppid = myself->pgid = myself->sid = myself->pid; myself->ctty = -1; myself->uid = USHRT_MAX; |