blob: 3703766a0a3567e66fc68c53fe80ab07adedfd63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/stacktrace_powerpc-inl.h.orig 2024-02-17 17:49:26 UTC
+++ src/stacktrace_powerpc-inl.h
@@ -111,7 +111,7 @@ int GetStackTrace(void** result, int max_depth, int sk
// Link Register is. For DARWIN and AIX (used by apple and
// linux ppc64), it's in sp[2]. For SYSV (used by linux ppc),
// it's in sp[1].
-#if defined(_CALL_AIX) || defined(_CALL_DARWIN)
+#if defined(_CALL_AIX) || defined(_CALL_DARWIN) || defined(_CALL_ELF)
result[n++] = *(sp + 2);
#elif defined(_CALL_SYSV)
result[n++] = *(sp + 1);
|