diff options
author | Christopher Faylor <me@cgf.cx> | 2004-01-26 18:52:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-01-26 18:52:02 +0000 |
commit | 5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1 (patch) | |
tree | 37a5f26d11c983b3d4947a1adcd9046c1a50bac9 /winsup/cygwin/exceptions.cc | |
parent | d7231d7224e004dc29640222f4d08da7b15aacce (diff) | |
download | cygnal-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.tar.gz cygnal-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.tar.bz2 cygnal-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 96e05e247..db70fa51d 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -383,7 +383,8 @@ try_to_debug (bool waitloop) return 1; SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE); while (!being_debugged ()) - low_priority_sleep (0); + Sleep (0); + Sleep (2000); small_printf ("*** continuing pid %u from debugger call\n", cygwin_pid (GetCurrentProcessId ())); } |