diff options
author | Christopher Faylor <cgf@redhat.com> | 2004-01-13 22:23:52 +0000 |
---|---|---|
committer | Christopher Faylor <cgf@redhat.com> | 2004-01-13 22:23:52 +0000 |
commit | 50a5c33527db955895a2fa5bc588b8688b6390c5 (patch) | |
tree | 6f22cf67298a1599da9aa24acd8ace18f460607d | |
parent | 2c4d72eb97186837459cdbf6973e5baac7de515a (diff) | |
download | gdb-50a5c33527db955895a2fa5bc588b8688b6390c5.tar.gz |
* autoload.cc (TryEnterCriticalSection): Remove.
* dcrt0.cc (dll_crt0_0): Delete inappropriate setting of _my_tls.stackptr to
NULL since it has really bad consequences. Make 'si' an automatic variable.
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/autoload.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d97bd08e441..e5534d04f50 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,12 @@ 2004-01-13 Christopher Faylor <cgf@redhat.com> + * autoload.cc (TryEnterCriticalSection): Remove. + * dcrt0.cc (dll_crt0_0): Delete inappropriate setting of + _my_tls.stackptr to NULL since it has really bad consequences. Make + 'si' an automatic variable. + +2004-01-13 Christopher Faylor <cgf@redhat.com> + * cygtls.cc (_threadinfo::init_thread): Correct thinko which caused thread list to be allocated every time. * cygtls.h (CYGTLS_PADSIZE): Define as const int. diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 6d0177fd292..9cd7f6a4b61 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -515,7 +515,6 @@ LoadDLLfuncEx (Process32Next, 8, kernel32, 1) LoadDLLfuncEx (RegisterServiceProcess, 8, kernel32, 1) LoadDLLfuncEx (SignalObjectAndWait, 16, kernel32, 1) LoadDLLfuncEx (SwitchToThread, 0, kernel32, 1) -LoadDLLfunc (TryEnterCriticalSection, 4, kernel32) LoadDLLfuncEx (waveOutGetNumDevs, 0, winmm, 1) LoadDLLfuncEx (waveOutOpen, 24, winmm, 1) diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 438faaa5f36..3d6b7a89b4e 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -576,9 +576,6 @@ dll_crt0_0 () initial_env (); char zeros[sizeof (child_proc_info->zero)] = {0}; - static NO_COPY STARTUPINFO si; - - _my_tls.stackptr = NULL; init_console_handler (); init_global_security (); @@ -592,6 +589,7 @@ dll_crt0_0 () (void) SetErrorMode (SEM_FAILCRITICALERRORS); + STARTUPINFO si; GetStartupInfo (&si); child_proc_info = (child_info *) si.lpReserved2; |