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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 commit 443e11243cf3c88087b70602822d9e228f60d40a
     2 Author: Jed Davis <jld@mozilla.com>
     3 Date:   Wed Jan 29 12:06:33 2014 -0800
     5     Bug 945498: Use breakpad to report seccomp violations as crashes.
     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 {
    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();
    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);

mercurial