X-Git-Url: https://git.saurik.com/apple/libpthread.git/blobdiff_plain/f1a1da6cf65a9d0e6858678f6c259025cf5d27fd..76b7b9a2a65d05f65ded82a6675bf63a7f569766:/src/pthread_support.c diff --git a/src/pthread_support.c b/src/pthread_support.c index 5ae4239..f8c529f 100644 --- a/src/pthread_support.c +++ b/src/pthread_support.c @@ -24,14 +24,14 @@ #include "internal.h" #include #include <_simple.h> -#include + #define __SIGABRT 6 /* We should move abort() into Libsyscall, if possible. */ int __getpid(void); -PTHREAD_NORETURN int +int __kill(int pid, int signum, int posix); void @@ -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(); }