* include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.

* external.cc (cygwin_internal): Implement CW_DEBUG_SELF.
* init.cc (dll_entry): Minor rearrangement of code.
This commit is contained in:
Christopher Faylor
2005-05-17 01:21:06 +00:00
parent b55ba2f3da
commit 5c8e6fbd8c
4 changed files with 16 additions and 4 deletions

View File

@ -119,6 +119,7 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
{
case DLL_PROCESS_ATTACH:
cygwin_hmodule = (HMODULE) h;
dynamically_loaded = (static_load == NULL);
/* Is the stack at an unusual high address? Check if we're running on
a 64 bit machine. If so, respawn. */
if (&is_64bit_machine >= (PBOOL) 0x400000
@ -127,7 +128,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
respawn_wow64_process ();
prime_threads ();
dynamically_loaded = (static_load == NULL);
dll_crt0_0 ();
break;
case DLL_PROCESS_DETACH: