diff -r 000000000000 -r 6474c204b198 toolkit/crashreporter/breakpad-patches/18-bug945498-expose-handle-signal.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/crashreporter/breakpad-patches/18-bug945498-expose-handle-signal.patch Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,28 @@ +commit 443e11243cf3c88087b70602822d9e228f60d40a +Author: Jed Davis +Date: Wed Jan 29 12:06:33 2014 -0800 + + Bug 945498: Use breakpad to report seccomp violations as crashes. + +diff --git a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h +index 7155419..c0039bc 100644 +--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h ++++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h +@@ -219,6 +219,9 @@ class ExceptionHandler { + + // Force signal handling for the specified signal. + bool SimulateSignalDelivery(int sig); ++ ++ // Report a crash signal from an SA_SIGINFO signal handler. ++ bool HandleSignal(int sig, siginfo_t* info, void* uc); + private: + // Save the old signal handlers and install new ones. + static bool InstallHandlersLocked(); +@@ -231,7 +234,6 @@ class ExceptionHandler { + void WaitForContinueSignal(); + + static void SignalHandler(int sig, siginfo_t* info, void* uc); +- bool HandleSignal(int sig, siginfo_t* info, void* uc); + static int ThreadEntry(void* arg); + bool DoDump(pid_t crashing_process, const void* context, + size_t context_size);