blob: b344f5427ba1ef44c9bbb239088d874787e76e93 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Consider compiler define for aarch64
2
3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4Upstream-Status:Pending
5
6Index: a2jmidid-8/sigsegv.c
7===================================================================
8--- a2jmidid-8.orig/sigsegv.c
9+++ a2jmidid-8/sigsegv.c
10@@ -91,18 +91,18 @@ static void signal_segv(int signum, sigi
11 a2j_error("info.si_errno = %d", info->si_errno);
12 a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]);
13 a2j_error("info.si_addr = %p", info->si_addr);
14-#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__)
15+#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__)
16 for(i = 0; i < NGREG; i++)
17 a2j_error("reg[%02d] = 0x" REGFORMAT, i,
18 #if defined(__powerpc__)
19 ucontext->uc_mcontext.uc_regs[i]
20-#elif defined(__sparc__) && defined(__arch64__)
21+#elif defined(__sparc__) || defined(__arch64__)
22 ucontext->uc_mcontext.mc_gregs[i]
23 #else
24 ucontext->uc_mcontext.gregs[i]
25 #endif
26 );
27-#endif /* alpha, ia64, kFreeBSD, arm, hppa */
28+#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 */
29
30 #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
31 # if defined(SIGSEGV_STACK_IA64)