llvm.org GIT mirror llvm / e9eda65
Workaround for incorrect Win32 header on GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303272 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 3 years ago
1 changed file(s) with 4 addition(s) and 6 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
166 // DBG_PRINTEXCEPTION_WIDE_C is not properly defined on all supported
167 // compilers and platforms, so we define it manually.
168 constexpr ULONG DbgPrintExceptionWideC = 0x4001000AL;
171169 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
172170 {
173171 case DBG_PRINTEXCEPTION_C:
174 case WideDbgPrintValue:
172 case DbgPrintExceptionWideC:
175173 case 0x406D1388: // set debugger thread name
176174 return EXCEPTION_CONTINUE_EXECUTION;
177175 }