[PATCH] D33260: [CrashRecovery] Don't treat OutputDebugString as a crash
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 16:03:53 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL303219: [Support] Ignore OutputDebugString exceptions in our crash recovery. (authored by zturner).
Changed prior to commit:
https://reviews.llvm.org/D33260?vs=99209&id=99223#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33260
Files:
llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Index: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
===================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp
@@ -164,6 +164,14 @@
static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
{
+ switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
+ {
+ case DBG_PRINTEXCEPTION_C:
+ case DBG_PRINTEXCEPTION_WIDE_C:
+ case 0x406D1388: // set debugger thread name
+ return EXCEPTION_CONTINUE_EXECUTION;
+ }
+
// Lookup the current thread local recovery object.
const CrashRecoveryContextImpl *CRCI = CurrentContext->get();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33260.99223.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170516/4aea3562/attachment.bin>
More information about the llvm-commits
mailing list