From a04c80255c29a57f63f123f10e15f3887a896cac Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 11 Aug 2016 12:50:32 -0700 Subject: 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 --- debuggerd/debuggerd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'debuggerd/debuggerd.cpp') diff --git a/debuggerd/debuggerd.cpp b/debuggerd/debuggerd.cpp index 0c18b9c58..61cceb048 100644 --- a/debuggerd/debuggerd.cpp +++ b/debuggerd/debuggerd.cpp @@ -51,6 +51,8 @@ #include +#include + #include "backtrace.h" #include "getevent.h" #include "signal_sender.h" @@ -70,7 +72,6 @@ struct debugger_request_t { pid_t pid, tid; uid_t uid, gid; uintptr_t abort_msg_address; - int32_t original_si_code; }; static void wait_for_user_action(const debugger_request_t& request) { @@ -222,7 +223,6 @@ static int read_request(int fd, debugger_request_t* out_request) { out_request->uid = cr.uid; out_request->gid = cr.gid; out_request->abort_msg_address = msg.abort_msg_address; - out_request->original_si_code = msg.original_si_code; if (msg.action == DEBUGGER_ACTION_CRASH) { // Ensure that the tid reported by the crashing process is valid. @@ -471,8 +471,8 @@ static bool perform_dump(const debugger_request_t& request, int fd, int tombston case SIGSTOP: if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { ALOGV("debuggerd: stopped -- dumping to tombstone"); - engrave_tombstone(tombstone_fd, backtrace_map, request.pid, request.tid, siblings, signal, - request.original_si_code, request.abort_msg_address, amfd_data); + engrave_tombstone(tombstone_fd, backtrace_map, request.pid, request.tid, siblings, + request.abort_msg_address, amfd_data); } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) { ALOGV("debuggerd: stopped -- dumping to fd"); dump_backtrace(fd, backtrace_map, request.pid, request.tid, siblings, nullptr); @@ -497,8 +497,8 @@ static bool perform_dump(const debugger_request_t& request, int fd, int tombston case SIGTRAP: ALOGV("stopped -- fatal signal\n"); *crash_signal = signal; - engrave_tombstone(tombstone_fd, backtrace_map, request.pid, request.tid, siblings, signal, - request.original_si_code, request.abort_msg_address, amfd_data); + engrave_tombstone(tombstone_fd, backtrace_map, request.pid, request.tid, siblings, + request.abort_msg_address, amfd_data); break; default: -- cgit v1.2.3