llvm.org GIT mirror llvm / 04d09e9
Fix for compilers with older CRT header libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303220 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 3 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
163163
164164 static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
165165 {
166 #ifdef DBG_PRINTEXCEPTION_WIDE_C
167 constexpr ULONG WideDbgPrintValue = DBG_PRINTEXCEPTION_WIDE_C;
168 #else
169 constexpr ULONG WideDbgPrintValue = 0x4001000AL;
170 #endif
166171 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
167172 {
168173 case DBG_PRINTEXCEPTION_C:
169 case DBG_PRINTEXCEPTION_WIDE_C:
174 case WideDbgPrintValue:
170175 case 0x406D1388: // set debugger thread name
171176 return EXCEPTION_CONTINUE_EXECUTION;
172177 }