summaryrefslogtreecommitdiff
path: root/src/vm/excep.h
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-02-22 14:43:30 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2017-02-22 14:43:30 (GMT)
commit1f5cae07e65d646fd57fdca7376d4b2f1dccad00 (patch)
treed89e5551e9c3e781285f33cc4d8c74dfc9d2715c /src/vm/excep.h
parent0b4e58ac7a455640a5410b6f647ca3044426ea56 (diff)
downloadcoreclr-1f5cae07e65d646fd57fdca7376d4b2f1dccad00.zip
coreclr-1f5cae07e65d646fd57fdca7376d4b2f1dccad00.tar.gz
coreclr-1f5cae07e65d646fd57fdca7376d4b2f1dccad00.tar.bz2
Clean up ClrUnwindEx (#9482)
* Clean up ClrUnwindEx
Diffstat (limited to 'src/vm/excep.h')
-rw-r--r--src/vm/excep.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vm/excep.h b/src/vm/excep.h
index 13d8a3b..4c75293 100644
--- a/src/vm/excep.h
+++ b/src/vm/excep.h
@@ -745,9 +745,16 @@ bool IsInterceptableException(Thread *pThread);
// perform simple checking to see if the current exception is intercepted
bool CheckThreadExceptionStateForInterception();
+#ifndef FEATURE_PAL
+// Currently, only Windows supports ClrUnwindEx (used inside ClrDebuggerDoUnwindAndIntercept)
+#define DEBUGGER_EXCEPTION_INTERCEPTION_SUPPORTED
+#endif // !FEATURE_PAL
+
+#ifdef DEBUGGER_EXCEPTION_INTERCEPTION_SUPPORTED
// Intercept the current exception and start an unwind. This function may never return.
EXCEPTION_DISPOSITION ClrDebuggerDoUnwindAndIntercept(X86_FIRST_ARG(EXCEPTION_REGISTRATION_RECORD *pEstablisherFrame)
EXCEPTION_RECORD *pExceptionRecord);
+#endif // DEBUGGER_EXCEPTION_INTERCEPTION_SUPPORTED
LONG NotifyDebuggerLastChance(Thread *pThread,
EXCEPTION_POINTERS *pExceptionInfo,