* sigproc.cc (sigproc_terminate): Don't close sendsig handle when execing since
we're not closing what we think we're closing. (sig_send): Improve debugging when exiting due to no_signals_available. * wincap.h (wincaps::cant_debug_dll_entry): New element. * wincap.cc: Implement above element throughout. * dcrt0.cc (initial_env): Accommodate changes necessary to allow initial debugging for systems which do not allow debugging in dll_entry. (dll_crt0_0): Add initial_env call back here. * Makefile.in (install-man): Use mandir as target for installation. * include/cygwin/version.h: Bump DLL minor number to 7 (should have been done earlier).
This commit is contained in:
@@ -531,11 +531,20 @@ break_here ()
|
||||
#endif
|
||||
|
||||
static void
|
||||
initial_env ()
|
||||
initial_env (bool first)
|
||||
{
|
||||
char buf[CYG_MAX_PATH + 1];
|
||||
if (!first)
|
||||
/* nothing */;
|
||||
else if (GetEnvironmentVariable ("CYGWIN_TESTING", buf, sizeof (buf) - 1))
|
||||
_cygwin_testing = 1;
|
||||
#ifdef DEBUGGING
|
||||
DWORD len;
|
||||
static bool NO_COPY did_debugging_stuff;
|
||||
if (did_debugging_stuff || (first && wincap.cant_debug_dll_entry ()))
|
||||
return;
|
||||
|
||||
did_debugging_stuff = true;
|
||||
if (GetEnvironmentVariable ("CYGWIN_SLEEP", buf, sizeof (buf) - 1))
|
||||
{
|
||||
DWORD ms = atoi (buf);
|
||||
@@ -569,14 +578,13 @@ initial_env ()
|
||||
}
|
||||
#endif
|
||||
|
||||
if (GetEnvironmentVariable ("CYGWIN_TESTING", buf, sizeof (buf) - 1))
|
||||
_cygwin_testing = 1;
|
||||
}
|
||||
|
||||
void __stdcall
|
||||
dll_crt0_0 ()
|
||||
{
|
||||
wincap.init ();
|
||||
initial_env (true);
|
||||
|
||||
char zeros[sizeof (child_proc_info->zero)] = {0};
|
||||
|
||||
@@ -722,7 +730,7 @@ dll_crt0_1 (char *)
|
||||
/* FIXME: Verify forked children get their exception handler set up ok. */
|
||||
exception_list cygwin_except_entry;
|
||||
|
||||
initial_env ();
|
||||
initial_env (false);
|
||||
check_sanity_and_sync (user_data);
|
||||
malloc_init ();
|
||||
|
||||
|
Reference in New Issue
Block a user