| Index: util/mach/exc_server_variants.cc
|
| diff --git a/util/mach/exc_server_variants.cc b/util/mach/exc_server_variants.cc
|
| index e204ca5d6beb07fb7bbd20a02a0fcfa9cfcd1aeb..e5916c7db20fac744e75b735d996442b2ee2e8b7 100644
|
| --- a/util/mach/exc_server_variants.cc
|
| +++ b/util/mach/exc_server_variants.cc
|
| @@ -767,33 +767,6 @@ mach_msg_size_t UniversalMachExcServer::MachMessageServerReplySize() {
|
| return impl_->MachMessageServerReplySize();
|
| }
|
|
|
| -exception_type_t ExcCrashRecoverOriginalException(
|
| - mach_exception_code_t code_0,
|
| - mach_exception_code_t* original_code_0,
|
| - int* signal) {
|
| - // 10.9.4 xnu-2422.110.17/bsd/kern/kern_exit.c proc_prepareexit() sets code[0]
|
| - // based on the signal value, original exception type, and low 20 bits of the
|
| - // original code[0] before calling xnu-2422.110.17/osfmk/kern/exception.c
|
| - // task_exception_notify() to raise an EXC_CRASH.
|
| - //
|
| - // The list of core-generating signals (as used in proc_prepareexit()’s call
|
| - // to hassigprop()) is in 10.9.4 xnu-2422.110.17/bsd/sys/signalvar.h sigprop:
|
| - // entires with SA_CORE are in the set. These signals are SIGQUIT, SIGILL,
|
| - // SIGTRAP, SIGABRT, SIGEMT, SIGFPE, SIGBUS, SIGSEGV, and SIGSYS. Processes
|
| - // killed for code-signing reasons will be killed by SIGKILL and are also
|
| - // eligible for EXC_CRASH handling, but processes killed by SIGKILL for other
|
| - // reasons are not.
|
| - if (signal) {
|
| - *signal = (code_0 >> 24) & 0xff;
|
| - }
|
| -
|
| - if (original_code_0) {
|
| - *original_code_0 = code_0 & 0xfffff;
|
| - }
|
| -
|
| - return (code_0 >> 20) & 0xf;
|
| -}
|
| -
|
| kern_return_t ExcServerSuccessfulReturnValue(exception_behavior_t behavior,
|
| bool set_thread_state) {
|
| if (!set_thread_state && ExceptionBehaviorHasState(behavior)) {
|
|
|