aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/handler/exception_handler.cc
diff options
context:
space:
mode:
authorAndreas Haas <ahaas@chromium.org>2019-01-15 15:48:08 +0100
committerMark Mentovai <mark@chromium.org>2019-02-19 22:12:01 +0000
commita0e078365d0515f4ffdfc3389d92b2c062f62132 (patch)
tree4044f5b3397d3d7c3f0219a41f8bdb625a353a40 /src/client/linux/handler/exception_handler.cc
parentAlways emit a 32-bit crash address for 32-bit architectures (diff)
downloadbreakpad-a0e078365d0515f4ffdfc3389d92b2c062f62132.tar.xz
Delete deprecated SetFirstChanceExceptionHandler function
This CL removes the code I marked as deprecated in https://crrev.com/c/1411776. I could not delete the code in that CL before I removed all uses in Chrome in https://crrev.com/c/1411643. The tracking bug contains more information. R=mark@chromium.org Bug: chromium:921971 Change-Id: I77597826ef6e69a13ece529a5d24702bc72aa436 Reviewed-on: https://chromium-review.googlesource.com/c/1412353 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client/linux/handler/exception_handler.cc')
-rw-r--r--src/client/linux/handler/exception_handler.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
index 0d7cd9cf..b895f6d7 100644
--- a/src/client/linux/handler/exception_handler.cc
+++ b/src/client/linux/handler/exception_handler.cc
@@ -213,7 +213,6 @@ pthread_mutex_t g_handler_stack_mutex_ = PTHREAD_MUTEX_INITIALIZER;
ExceptionHandler::CrashContext g_crash_context_;
FirstChanceHandler g_first_chance_handler_ = nullptr;
-FirstChanceHandlerDeprecated g_first_chance_handler_deprecated_ = nullptr;
} // namespace
// Runs before crashing: normal context.
@@ -339,11 +338,6 @@ void ExceptionHandler::SignalHandler(int sig, siginfo_t* info, void* uc) {
return;
}
- if (g_first_chance_handler_deprecated_ != nullptr &&
- g_first_chance_handler_deprecated_(sig, info, uc)) {
- return;
- }
-
// All the exception signals are blocked at this point.
pthread_mutex_lock(&g_handler_stack_mutex_);
@@ -797,13 +791,7 @@ bool ExceptionHandler::WriteMinidumpForChild(pid_t child,
}
void SetFirstChanceExceptionHandler(FirstChanceHandler callback) {
- g_first_chance_handler_deprecated_ = nullptr;
g_first_chance_handler_ = callback;
}
-void SetFirstChanceExceptionHandler(FirstChanceHandlerDeprecated callback) {
- g_first_chance_handler_ = nullptr;
- g_first_chance_handler_deprecated_ = callback;
-}
-
} // namespace google_breakpad