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