toolkit/crashreporter/breakpad-patches/18-bug945498-expose-handle-signal.patch

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 commit 443e11243cf3c88087b70602822d9e228f60d40a
michael@0 2 Author: Jed Davis <jld@mozilla.com>
michael@0 3 Date: Wed Jan 29 12:06:33 2014 -0800
michael@0 4
michael@0 5 Bug 945498: Use breakpad to report seccomp violations as crashes.
michael@0 6
michael@0 7 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
michael@0 8 index 7155419..c0039bc 100644
michael@0 9 --- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
michael@0 10 +++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
michael@0 11 @@ -219,6 +219,9 @@ class ExceptionHandler {
michael@0 12
michael@0 13 // Force signal handling for the specified signal.
michael@0 14 bool SimulateSignalDelivery(int sig);
michael@0 15 +
michael@0 16 + // Report a crash signal from an SA_SIGINFO signal handler.
michael@0 17 + bool HandleSignal(int sig, siginfo_t* info, void* uc);
michael@0 18 private:
michael@0 19 // Save the old signal handlers and install new ones.
michael@0 20 static bool InstallHandlersLocked();
michael@0 21 @@ -231,7 +234,6 @@ class ExceptionHandler {
michael@0 22 void WaitForContinueSignal();
michael@0 23
michael@0 24 static void SignalHandler(int sig, siginfo_t* info, void* uc);
michael@0 25 - bool HandleSignal(int sig, siginfo_t* info, void* uc);
michael@0 26 static int ThreadEntry(void* arg);
michael@0 27 bool DoDump(pid_t crashing_process, const void* context,
michael@0 28 size_t context_size);

mercurial