From a723811c171a3dae340a08f24afedbfc238b7930 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Fri, 2 Oct 2015 14:55:07 +0200 Subject: Implement refactored Unix managed exception handling This change refactors managed exception handling so that we perform full first pass over both managed and native frames and only after we find target frame, we perform the second pass. This helps in debugging of unhandled managed exceptions since the debugger can kick in at the end of the first pass when the stack frames are still intact and it can show the context where the exception was fired. --- src/vm/corhost.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/vm/corhost.cpp') diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp index 161b2a1fae..451043fc45 100644 --- a/src/vm/corhost.cpp +++ b/src/vm/corhost.cpp @@ -1270,7 +1270,6 @@ HRESULT CorHost2::ExecuteAssembly(DWORD dwAppDomainId, return HOST_E_INVALIDOPERATION; } - INSTALL_UNHANDLED_MANAGED_EXCEPTION_TRAP; INSTALL_UNWIND_AND_CONTINUE_HANDLER; _ASSERTE (!pThread->PreemptiveGCDisabled()); @@ -1303,7 +1302,6 @@ HRESULT CorHost2::ExecuteAssembly(DWORD dwAppDomainId, } UNINSTALL_UNWIND_AND_CONTINUE_HANDLER; - UNINSTALL_UNHANDLED_MANAGED_EXCEPTION_TRAP; ErrExit: -- cgit v1.2.3