From: Kai-Chung Yan Date: Sat, 28 May 2022 11:13:51 +0000 (+0100) Subject: Manual definition of struct user_pt_regs X-Git-Tag: archive/raspbian/29.0.6-18+rpi1^2~35 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d70692453ce59e1520361f87e5a4f833530e05c1;p=android-platform-tools.git Manual definition of struct user_pt_regs Last-Update: 2016-08-24 Forwarded: not-needed On ARM64, libunwind uses struct user_pt_regs which is not defined in anywhere, which causes FTBFS. Gbp-Pq: Topic external/libunwind Gbp-Pq: Name user_pt_regs.patch --- diff --git a/external/libunwind/src/ptrace/_UPT_access_reg.c b/external/libunwind/src/ptrace/_UPT_access_reg.c index 1d35275a..98f15462 100644 --- a/external/libunwind/src/ptrace/_UPT_access_reg.c +++ b/external/libunwind/src/ptrace/_UPT_access_reg.c @@ -26,6 +26,15 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "_UPT_internal.h" +#if defined(__aarch64__) + struct user_pt_regs { + __u64 regs[31]; + __u64 sp; + __u64 pc; + __u64 pstate; + }; +#endif + #if UNW_TARGET_IA64 # include # ifdef HAVE_ASM_PTRACE_OFFSETS_H