OSDN Git Service

* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
authorcgf <cgf>
Sat, 5 May 2001 05:07:20 +0000 (05:07 +0000)
committercgf <cgf>
Sat, 5 May 2001 05:07:20 +0000 (05:07 +0000)
guard variable.

winsup/cygwin/ChangeLog
winsup/cygwin/exceptions.cc

index f48f891..5920cef 100644 (file)
@@ -1,3 +1,8 @@
+Sat May  5 01:04:11 2001  Christopher Faylor <cgf@cygnus.com>
+
+       * exceptions.cc (handle_exceptions): Vastly increase test for exception
+       loop guard variable.
+
 Fri May  4 22:23:33 2001  Christopher Faylor <cgf@cygnus.com>
 
        * exceptions.cc (stack_info): Add some controls.
index f7f4253..d9a812f 100644 (file)
@@ -406,8 +406,11 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
   static int NO_COPY debugging = 0;
   static int NO_COPY recursed = 0;
 
-  if (debugging && ++debugging < 50)
-    return 0;
+  if (debugging && ++debugging < 50000)
+    {
+      SetThreadPriority (hMainThread, THREAD_PRIORITY_NORMAL);
+      return 0;
+    }
 
   /* If we've already exited, don't do anything here.  Returning 1
      tells Windows to keep looking for an exception handler.  */