[compiler-rt] r210028 - [Sanitizer/interception Win] Break into the debugger on unknown instructions

Timur Iskhodzhanov timurrrr at google.com
Mon Jun 2 06:40:41 PDT 2014


Author: timurrrr
Date: Mon Jun  2 08:40:41 2014
New Revision: 210028

URL: http://llvm.org/viewvc/llvm-project?rev=210028&view=rev
Log:
[Sanitizer/interception Win] Break into the debugger on unknown instructions

Modified:
    compiler-rt/trunk/lib/interception/interception_win.cc

Modified: compiler-rt/trunk/lib/interception/interception_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception_win.cc?rev=210028&r1=210027&r2=210028&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception_win.cc (original)
+++ compiler-rt/trunk/lib/interception/interception_win.cc Mon Jun  2 08:40:41 2014
@@ -134,8 +134,9 @@ static size_t RoundUpToInstrBoundary(siz
     // FIXME: Unknown instruction failures might happen when we add a new
     // interceptor or a new compiler version. In either case, they should result
     // in visible and readable error messages. However, merely calling abort()
-    // or __debugbreak() leads to an infinite recursion in CheckFailed.
+    // leads to an infinite recursion in CheckFailed.
     // Do we have a good way to abort with an error message here?
+    __debugbreak();
     return 0;
   }
 





More information about the llvm-commits mailing list