Index: src/ports/SkMemory_malloc.cpp |
diff --git a/src/ports/SkMemory_malloc.cpp b/src/ports/SkMemory_malloc.cpp |
index 2fc59f9b92060667d64153abbaf15effd947960a..f06dc35ea6a189d5b4460344bed86046826a88de 100644 |
--- a/src/ports/SkMemory_malloc.cpp |
+++ b/src/ports/SkMemory_malloc.cpp |
@@ -31,7 +31,11 @@ void sk_abort_no_print() { |
// do not display a system dialog before aborting the process |
_set_abort_behavior(0, _WRITE_ABORT_MSG); |
#endif |
+#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN) |
+ __debugbreak(); |
+#else |
abort(); |
+#endif |
} |
void sk_out_of_memory(void) { |