diff options
Diffstat (limited to 'debuggerd/libdebuggerd/tombstone.cpp')
-rw-r--r-- | debuggerd/libdebuggerd/tombstone.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debuggerd/libdebuggerd/tombstone.cpp b/debuggerd/libdebuggerd/tombstone.cpp index 4686bfdc8..c05ccc358 100644 --- a/debuggerd/libdebuggerd/tombstone.cpp +++ b/debuggerd/libdebuggerd/tombstone.cpp @@ -751,8 +751,11 @@ void engrave_tombstone(int tombstone_fd, BacktraceMap* map, dump_crash(&log, map, open_files, pid, tid, siblings, abort_msg_address); } -void engrave_tombstone_ucontext(int tombstone_fd, pid_t pid, pid_t tid, uintptr_t abort_msg_address, - siginfo_t* siginfo, ucontext_t* ucontext) { +void engrave_tombstone_ucontext(int tombstone_fd, uintptr_t abort_msg_address, siginfo_t* siginfo, + ucontext_t* ucontext) { + pid_t pid = getpid(); + pid_t tid = gettid(); + log_t log; log.current_tid = tid; log.crashed_tid = tid; |