mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-15 10:07:56 +08:00
948fd2d019
This installs signal handlers in the crashpad_handler process to log these crashes via the Crashpad.HandlerCrash.ExceptionCode.Mac histogram. This is roughly the same mechanism that’s used for Windows. The signal handler tries fairly hard to avoid swallowing signals, so that things appear to outside observers (including debuggers and crash handlers) identically to how they would look if no signal handler was present. The signal handler uses a different mapping schema than the existing Crashpad.ExceptionCode.Mac histogram for reasons explained in code comments. Because the mappings should not overlap, the new values may be added to the existing CrashpadMacExceptionCodes enum. BUG=crashpad:100 Change-Id: I9b8bda1c59d0a180501c285cdc672840a54f5efc Reviewed-on: https://chromium-review.googlesource.com/435451 Reviewed-by: Robert Sesek <rsesek@chromium.org>