]> git.saurik.com Git - apple/libpthread.git/blobdiff - src/pthread_support.c
libpthread-137.1.1.tar.gz
[apple/libpthread.git] / src / pthread_support.c
index 5ae4239bed62dcd7581eb599ef959e9c0f08282d..5097d60a5855ffd1eb97a409368e64485014f106 100644 (file)
@@ -24,7 +24,7 @@
 #include "internal.h"
 #include <dlfcn.h>
 #include <_simple.h>
-#include <CrashReporterClient.h>
+
 
 #define __SIGABRT 6
 
@@ -45,21 +45,11 @@ __pthread_abort(void)
        } else {
                __kill(__getpid(), __SIGABRT, 0);
        }
+       __builtin_trap();
 }
 
 void
 __pthread_abort_reason(const char *fmt, ...)
 {
-#if !TARGET_OS_EMBEDDED
-       va_list ap;
-       const char *str = fmt;
-       _SIMPLE_STRING s = _simple_salloc();
-       va_start(ap, fmt);
-       if (_simple_vsprintf(s, fmt, ap) == 0) {
-               str = _simple_string(s);
-       }
-       CRSetCrashLogMessage(str);
-       va_end(ap);
-#endif
        __pthread_abort();
 }