* exceptions.cc (exception::handle): Eliminate buggy recursed value and just
check if we're exiting.
This commit is contained in:
@ -469,7 +469,6 @@ int
|
||||
exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, void *)
|
||||
{
|
||||
static bool NO_COPY debugging;
|
||||
static int NO_COPY recursed;
|
||||
_cygtls& me = _my_tls;
|
||||
|
||||
if (debugging && ++debugging < 500000)
|
||||
@ -616,8 +615,9 @@ exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, void
|
||||
|
||||
/* Another exception could happen while tracing or while exiting.
|
||||
Only do this once. */
|
||||
if (recursed++)
|
||||
api_fatal ("Error while dumping state (probably corrupted stack)");
|
||||
if (exit_state >= ES_SIGNAL_EXIT
|
||||
&& (NTSTATUS) e->ExceptionCode != STATUS_CONTROL_C_EXIT)
|
||||
api_fatal ("Exception during process exit");
|
||||
else if (!try_to_debug (0))
|
||||
rtl_unwind (frame, e);
|
||||
else
|
||||
|
Reference in New Issue
Block a user