From 9eb4eb1811a8abb9f63d4d7a0ceb17e2a22c12e8 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 9 Mar 2017 12:12:18 -0800 Subject: [PATCH] libdebuggerd: add compatibility shim. Avoid breaking internal code when AOSP automerges to internal. This will be reverted after fixing up the uses on the other end. Bug: http://b/35858739 Test: treehugger Change-Id: If1ee03d8d7c218d3ad9f451cfe9a9077753dda02 --- debuggerd/libdebuggerd/include/tombstone.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debuggerd/libdebuggerd/include/tombstone.h b/debuggerd/libdebuggerd/include/tombstone.h index bed371b52..8e6027841 100644 --- a/debuggerd/libdebuggerd/include/tombstone.h +++ b/debuggerd/libdebuggerd/include/tombstone.h @@ -42,4 +42,10 @@ void engrave_tombstone(int tombstone_fd, BacktraceMap* map, void engrave_tombstone_ucontext(int tombstone_fd, uintptr_t abort_msg_address, siginfo_t* siginfo, ucontext_t* ucontext); +// Compatibility shim. +static void engrave_tombstone_ucontext(int tombstone_fd, pid_t, pid_t, uintptr_t abort_msg_address, + siginfo_t* siginfo, ucontext_t* ucontext) { + engrave_tombstone_ucontext(tombstone_fd, abort_msg_address, siginfo, ucontext); +} + #endif // _DEBUGGERD_TOMBSTONE_H