X-Git-Url: https://git.saurik.com/apple/libpthread.git/blobdiff_plain/f1a1da6cf65a9d0e6858678f6c259025cf5d27fd..a03d92013c2a24ebc4e02e5d1f575787f8467f6b:/src/pthread_support.c diff --git a/src/pthread_support.c b/src/pthread_support.c index 5ae4239..5097d60 100644 --- a/src/pthread_support.c +++ b/src/pthread_support.c @@ -24,7 +24,7 @@ #include "internal.h" #include #include <_simple.h> -#include + #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(); }