* exception.h (exception::handle_while_being_debugged): Declare.

(exception::exception): Install unhandled exception filter.
	* exceptions.cc (exception::handle_while_being_debugged): New method.
This commit is contained in:
Corinna Vinschen
2014-03-19 16:08:21 +00:00
parent bdd04d0a62
commit 2c1e724ba4
3 changed files with 17 additions and 1 deletions

View File

@ -555,6 +555,14 @@ rtl_unwind (exception_list *frame, PEXCEPTION_RECORD e)
bool exception::handler_installed NO_COPY;
int
exception::handle_while_being_debugged (LPEXCEPTION_POINTERS ep)
{
if (being_debugged ())
return handle (ep);
return EXCEPTION_CONTINUE_SEARCH;
}
int
exception::handle (LPEXCEPTION_POINTERS ep)
#else