From 5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 26 Jan 2004 18:52:02 +0000 Subject: * cygtls.cc (_threadinfo::init_thread): Add more local reent stdio initialization. * dcrt0.cc (initial_env): Can it really be true that XP doesn't allow attaching a debugger during DLL attach? Add temporary workaround. (dll_crt0_0): Ensure that _impure_ptr stdio is initialized before any threads. (dll_crt0_1): Move _impure_ptr initialization to dll_crt0_0. * exceptions.cc (try_to_debug): Reinstate old method for looping while debugging. * syscalls.cc (_cygwin_istext_for_stdio): Regularize debugging output. Remove hopefully extraneous check. (setmode_helper): Add debugging output for improbable case. Use "binary" rather "raw" for consistency. --- winsup/cygwin/cygtls.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/cygtls.cc') diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index 4833b58..a744126 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -108,6 +108,8 @@ _threadinfo::init_thread (void *x, DWORD (*func) (void *, void *)) local_clib._stderr = _GLOBAL_REENT->_stderr; local_clib.__sdidinit = _GLOBAL_REENT->__sdidinit; local_clib.__cleanup = _GLOBAL_REENT->__cleanup; + local_clib.__sglue._niobs = 3; + local_clib.__sglue._iobs = &_GLOBAL_REENT->__sf[0]; } local_clib._current_locale = "C"; locals.process_logmask = LOG_UPTO (LOG_DEBUG); -- cgit v1.1