Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 8be9609d4522b5a0a2575671f6c0f7d174293971..08f4495b53b389cf95de81d74c0f1e582d20ff5d 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -388,6 +388,9 @@ void OS::Sleep(int milliseconds) { |
void OS::Abort() { |
// Redirect to std abort to signal abnormal program termination. |
+ if (FLAG_break_on_abort) { |
+ DebugBreak(); |
+ } |
abort(); |
} |