Index: runtime/bin/platform_macos.cc |
diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_macos.cc |
index 0c6de4ddac93d7de56b4f96e7baaa0822598e425..537bb1ec222f633a6fe4104f7f50b4fea53a0b5c 100644 |
--- a/runtime/bin/platform_macos.cc |
+++ b/runtime/bin/platform_macos.cc |
@@ -59,6 +59,10 @@ bool Platform::Initialize() { |
perror("sigaction() failed."); |
return false; |
} |
+ if (sigaction(SIGTRAP, &act, NULL) != 0) { |
+ perror("sigaction() failed."); |
+ return false; |
+ } |
return true; |
} |