mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
9af16a662a
Upstream issue for breakpad patch: https://breakpad.appspot.com/1114003/
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
commit 443e11243cf3c88087b70602822d9e228f60d40a
|
|
Author: Jed Davis <jld@mozilla.com>
|
|
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);
|