]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_apple_csp/lib/cspdebugging.h
Security-57740.1.18.tar.gz
[apple/security.git] / OSX / libsecurity_apple_csp / lib / cspdebugging.h
index 8648f23994a0fea714fa87ff2f3236fef233d743..91fdd945e29253115bd8f35ed63416d8ed728008 100644 (file)
@@ -108,10 +108,13 @@ extern void dblog4(char *str, void * arg1, void * arg2, void * arg3, void * arg4
 extern "C" {
 #endif
 
+#include <CrashReporterClient.h>
+
 static inline void _panic(const char *str)
 {
        printf("%s\n", str);
-       exit(1);
+    CRSetCrashLogMessage(str);
+    abort();
 }
 
 #ifdef __cplusplus