Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: util/mach/exc_server_variants.cc

Issue 1066243002: Accept non-fatal resource exceptions without generating crash reports (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Swallow non-fatal EXC_RESOURCE Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/mach/exc_server_variants.h ('k') | util/mach/exc_server_variants_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « util/mach/exc_server_variants.h ('k') | util/mach/exc_server_variants_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698