From abb83a6b81f532773c119e4799e28a3fcdc855ba Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Fri, 23 Aug 2013 11:51:34 +0000 Subject: [PATCH] Add comment about avoiding VS runtime support to OS::DebugBreak. R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/23090004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16294 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/platform-win32.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform-win32.cc b/src/platform-win32.cc index 292c24a..f52bb43 100644 --- a/src/platform-win32.cc +++ b/src/platform-win32.cc @@ -1010,6 +1010,9 @@ void OS::Abort() { void OS::DebugBreak() { #ifdef _MSC_VER + // To avoid Visual Studio runtime support the following code can be used + // instead + // __asm { int 3 } __debugbreak(); #else ::DebugBreak(); -- 2.7.4