From: Dmitry V. Levin Date: Mon, 2 Mar 2015 03:38:27 +0000 (+0000) Subject: aarch64: add -i option support X-Git-Tag: v4.10~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d819fe88fb28a93af40ca0fea3ca4e610c1edb90;p=strace aarch64: add -i option support * syscall.c (print_pc): Add aarch64 support. --- diff --git a/syscall.c b/syscall.c index cfd16e72..042a5d53 100644 --- a/syscall.c +++ b/syscall.c @@ -881,6 +881,11 @@ print_pc(struct tcb *tcp) return; } tprintf(fmt, pc); +#elif defined(AARCH64) + if (aarch64_io.iov_len == sizeof(arm_regs)) + tprintf(fmt, (unsigned long) arm_regs.ARM_pc); + else + tprintf(fmt, (unsigned long) aarch64_regs.pc); #elif defined(ARM) tprintf(fmt, arm_regs.ARM_pc); #elif defined(AVR32)