summaryrefslogtreecommitdiff
path: root/debuggerd/client/debuggerd_client.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-08-11 12:50:32 -0700
committerJosh Gao <jmgao@google.com>2016-08-12 11:00:18 -0700
commita04c80255c29a57f63f123f10e15f3887a896cac (patch)
tree2ff56bf3811062862670b6e4c516f16018fac388 /debuggerd/client/debuggerd_client.cpp
parentf5a960a187ba8959596f6a324c2b5a05c1be9b35 (diff)
debuggerd: remove unnecessary arguments.
These were previously required when bionic used tgkill to reraise signals, but now that we use rt_tgsigqueueinfo to reraise signals, they are no longer necessary. Change-Id: I46ba9f14039a727d0a2c4c3a9d93a3532ba8f263
Diffstat (limited to 'debuggerd/client/debuggerd_client.cpp')
-rw-r--r--debuggerd/client/debuggerd_client.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/debuggerd/client/debuggerd_client.cpp b/debuggerd/client/debuggerd_client.cpp
index 44e92fedd..bbc724a5a 100644
--- a/debuggerd/client/debuggerd_client.cpp
+++ b/debuggerd/client/debuggerd_client.cpp
@@ -185,7 +185,7 @@ static bool have_siginfo(int signum) {
return result;
}
-static void send_debuggerd_packet(siginfo_t* info) {
+static void send_debuggerd_packet() {
// Mutex to prevent multiple crashing threads from trying to talk
// to debuggerd at the same time.
static pthread_mutex_t crash_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -222,7 +222,6 @@ static void send_debuggerd_packet(siginfo_t* info) {
msg.abort_msg_address = reinterpret_cast<uintptr_t>(g_callbacks.get_abort_message());
}
- msg.original_si_code = (info != nullptr) ? info->si_code : 0;
ret = TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg)));
if (ret == sizeof(msg)) {
char debuggerd_ack;
@@ -254,7 +253,7 @@ static void debuggerd_signal_handler(int signal_number, siginfo_t* info, void*)
log_signal_summary(signal_number, info);
- send_debuggerd_packet(info);
+ send_debuggerd_packet();
// We need to return from the signal handler so that debuggerd can dump the
// thread that crashed, but returning here does not guarantee that the signal