diff options
author | Pedro Giffuni <pfg@apache.org> | 2017-01-13 16:08:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-15 21:00:00 +0000 |
commit | 5f2f0d9799d9ab57624e03e235b32333ad961ac2 (patch) | |
tree | a07ddd59f31eebe6bf64f187e2eb1afb8178b807 /sal | |
parent | 18a60a034abd3862ea28451f94cf2d3c7bb25307 (diff) |
FreeBSD PPC: Missing patch
Submitted by: Curtis Hamilton
(cherry picked from commit 55ffac651c9996916680cdc05b32eb1b091a5ccf)
Change-Id: I160ff9369a563d58469682ed96e25c792184708c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/backtrace.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c index c5fbfbf24948..5df6fcffd94d 100644 --- a/sal/osl/unx/backtrace.c +++ b/sal/osl/unx/backtrace.c @@ -138,9 +138,18 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) #include <stdio.h> #include "backtrace.h" +#if defined(POWERPC) || defined(POWERPC64) + +#define FRAME_PTR_OFFSET 1 +#define FRAME_OFFSET 0 + +#else + #define FRAME_PTR_OFFSET 3 #define FRAME_OFFSET 0 +#endif + int backtrace( void **buffer, int max_frames ) { struct frame *fp; |