Disable PrintSEHChain for non-Windows platforms (#8379)
authorJonghyun Park <parjong@gmail.com>
Wed, 30 Nov 2016 20:23:58 +0000 (05:23 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 30 Nov 2016 20:23:58 +0000 (21:23 +0100)
PrintSEHChain uses 'EXCEPTION_REGISTRATION_RECORD' which is not
available for non-Windows platforms.

This commit disables PrintSEHChain for non-Windows platforms to fix
build error in x86/Linux.

src/vm/debughelp.cpp

index 9db0ce5..f40f7db 100644 (file)
@@ -202,7 +202,7 @@ void *DumpEnvironmentBlock(void)
     return WszGetEnvironmentStrings();
 }
 
-#if defined(_TARGET_X86_)
+#if defined(_TARGET_X86_) && !defined(FEATURE_PAL)
 /*******************************************************************/
 // Dump the SEH chain to stderr
 void PrintSEHChain(void)