View | Details | Raw Unified | Return to bug 242343
Collapse All | Expand All

(-)files/patch-m4_pc__from__ucontext.m4 (+10 lines)
Line 0 Link Here
1
--- m4/pc_from_ucontext.m4.orig	2019-09-01 20:36:55 UTC
2
+++ m4/pc_from_ucontext.m4
3
@@ -21,6 +21,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
4
    pc_fields="$pc_fields uc_mcontext.gregs[[R15]]"     # Linux (arm old [untested])
5
    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
6
    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
7
+   pc_fields="$pc_fields uc_mcontext.mc_srr0"          # FreeBSD (powerpc, powerpc64)
8
    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
9
    pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_EIP]]"  # NetBSD (i386)
10
    pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_RIP]]"  # NetBSD (x86_64)
(-)files/patch-src_stacktrace__powerpc-inl.h (+11 lines)
Line 0 Link Here
1
--- src/stacktrace_powerpc-inl.h.orig	2019-12-01 18:35:43 UTC
2
+++ src/stacktrace_powerpc-inl.h
3
@@ -107,7 +107,7 @@ int GetStackTrace(void** result, int max_depth, int sk
4
       // Link Register is.  For DARWIN and AIX (used by apple and
5
       // linux ppc64), it's in sp[2].  For SYSV (used by linux ppc),
6
       // it's in sp[1].
7
-#if defined(_CALL_AIX) || defined(_CALL_DARWIN)
8
+#if defined(_CALL_AIX) || defined(_CALL_DARWIN) || defined(_CALL_ELF)
9
       result[n++] = *(sp+2);
10
 #elif defined(_CALL_SYSV)
11
       result[n++] = *(sp+1);

Return to bug 242343