Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3513)

Unified Diff: base/logging.cc

Issue 796343002: win: use __debugbreak instead of __asm__ int3 (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@file_path
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/logging.cc
diff --git a/base/logging.cc b/base/logging.cc
index a9627760a20452ac176345a612672c05dc96f58c..6cff773660a252c08dc813340442b2dfae2ec292 100644
--- a/base/logging.cc
+++ b/base/logging.cc
@@ -61,8 +61,12 @@ LogMessage::~LogMessage() {
#ifndef NDEBUG
abort();
#else
+#if defined(OS_WIN)
+ __debugbreak();
+#else
__asm__("int3");
#endif
+#endif
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698