Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-03-19 20:08:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-03-19 20:08:21 +0400
commit2c1e724ba46299696570c06440752d8729c60d2b (patch)
tree4c0373dcc167b2b307f6364a0b3b192247e0c05f /winsup/cygwin/exception.h
parentbdd04d0a6271e47584dd7ee8f350fa28951ed9d7 (diff)
* exception.h (exception::handle_while_being_debugged): Declare.
(exception::exception): Install unhandled exception filter. * exceptions.cc (exception::handle_while_being_debugged): New method.
Diffstat (limited to 'winsup/cygwin/exception.h')
-rw-r--r--winsup/cygwin/exception.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/exception.h b/winsup/cygwin/exception.h
index 6792536c9..673f3b3b5 100644
--- a/winsup/cygwin/exception.h
+++ b/winsup/cygwin/exception.h
@@ -111,6 +111,7 @@ class exception
#ifdef __x86_64__
static bool handler_installed;
static int handle (LPEXCEPTION_POINTERS);
+ static int handle_while_being_debugged (LPEXCEPTION_POINTERS);
#else
exception_list el;
exception_list *save;
@@ -123,7 +124,8 @@ public:
if (!handler_installed)
{
handler_installed = true;
- AddVectoredExceptionHandler (1, handle);
+ SetUnhandledExceptionFilter (handle);
+ AddVectoredExceptionHandler (1, handle_while_being_debugged);
}
#else
save = _except_list;