Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-07-30 08:46:07 +0400
committerChristopher Faylor <me@cgf.cx>2003-07-30 08:46:07 +0400
commitb9621e8d948ab0ac5df5363b6977df5ac0da476d (patch)
tree034d169f107bfbfb083394cc434bdb1e2246473c /winsup/cygwin
parentd193a9fe577231daabe25832849017613ffe6849 (diff)
* dcrt0.cc (_dll_crt0): Move strace.microseconds initialization to after
pthread initialization. (dll_crt0_1): i.e., here.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/dcrt0.cc7
2 files changed, 10 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 744f29b0c..1837130ce 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-30 Christopher Faylor <cgf@redhat.com>
+
+ * dcrt0.cc (_dll_crt0): Move strace.microseconds initialization to
+ after pthread initialization.
+ (dll_crt0_1): i.e., here.
+
2003-07-28 Christopher Faylor <cgf@redhat.com>
* fhandler_base.cc (fhandler_base::readv): Rework to properly return
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index f43d3b6d5..b4f7bdf5e 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -635,6 +635,10 @@ dll_crt0_1 ()
if (!user_data->forkee)
pthread::init_mainthread ();
+#ifdef DEBUGGING
+ strace.microseconds ();
+#endif
+
/* Initialize debug muto, if DLL is built with --enable-debugging.
Need to do this before any helper threads start. */
debug_init ();
@@ -849,9 +853,6 @@ _dll_crt0 ()
initial_env ();
char zeros[sizeof (fork_info->zero)] = {0};
static NO_COPY STARTUPINFO si;
-#ifdef DEBUGGING
- strace.microseconds ();
-#endif
main_environ = user_data->envptr;
*main_environ = NULL;