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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/crashreporter/breakpad-patches/18-bug945498-expose-handle-signal.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +commit 443e11243cf3c88087b70602822d9e228f60d40a
     1.5 +Author: Jed Davis <jld@mozilla.com>
     1.6 +Date:   Wed Jan 29 12:06:33 2014 -0800
     1.7 +
     1.8 +    Bug 945498: Use breakpad to report seccomp violations as crashes.
     1.9 +
    1.10 +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
    1.11 +index 7155419..c0039bc 100644
    1.12 +--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
    1.13 ++++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
    1.14 +@@ -219,6 +219,9 @@ class ExceptionHandler {
    1.15 + 
    1.16 +   // Force signal handling for the specified signal.
    1.17 +   bool SimulateSignalDelivery(int sig);
    1.18 ++
    1.19 ++  // Report a crash signal from an SA_SIGINFO signal handler.
    1.20 ++  bool HandleSignal(int sig, siginfo_t* info, void* uc);
    1.21 +  private:
    1.22 +   // Save the old signal handlers and install new ones.
    1.23 +   static bool InstallHandlersLocked();
    1.24 +@@ -231,7 +234,6 @@ class ExceptionHandler {
    1.25 +   void WaitForContinueSignal();
    1.26 + 
    1.27 +   static void SignalHandler(int sig, siginfo_t* info, void* uc);
    1.28 +-  bool HandleSignal(int sig, siginfo_t* info, void* uc);
    1.29 +   static int ThreadEntry(void* arg);
    1.30 +   bool DoDump(pid_t crashing_process, const void* context,
    1.31 +               size_t context_size);

mercurial