Disable PrintSEHChain for non-Windows platforms (dotnet/coreclr#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.

Commit migrated from https://github.com/dotnet/coreclr/commit/3ce1795cb62b223029d5d418ca8d8a9dfd25aefc

src/coreclr/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)