Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 5600542ba031e8ee02eabc7947080450f3111b93..2801b711bf7afc73dd1040938e53aff67aab6e6d 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -961,11 +961,11 @@ void OS::Sleep(int milliseconds) { |
void OS::Abort() { |
- if (!IsDebuggerPresent()) { |
+ if (IsDebuggerPresent() || FLAG_break_on_abort) { |
+ DebugBreak(); |
+ } else { |
// Make the MSVCRT do a silent abort. |
raise(SIGABRT); |
- } else { |
- DebugBreak(); |
} |
} |