diff options
author | Damjan Jovanovic <damjan@apache.org> | 2015-11-26 19:02:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-30 17:30:24 +0000 |
commit | fa326746ba70b0302f11533a5cf36daaa6235d04 (patch) | |
tree | 0063b147ea4377cd7193fb542688530190f48826 /sal | |
parent | 7a93f5348007ab1ce52e65cd3811032f31839689 (diff) |
fix the value of FRAME_PTR_OFFSET
in backtrace.c and diagnose.c - it's 3 because of the EBP/RBP register's
position in the jmp_buf
(https://github.com/freebsd/freebsd/blob/master/lib/libc/amd64/gen/_setjmp.S
and
https://github.com/freebsd/freebsd/blob/master/lib/libc/i386/gen/_setjmp.S).
Patch by: me
(cherry picked from commit 87451f66edfa425e51289ac6f12ee110d7109a02)
Change-Id: I5f18cd9145f90db351c124c6f914411f1ffc2a83
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/backtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c index 43a13d86d0d6..340b5076ca7c 100644 --- a/sal/osl/unx/backtrace.c +++ b/sal/osl/unx/backtrace.c @@ -138,7 +138,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) #include <stdio.h> #include "backtrace.h" -#define FRAME_PTR_OFFSET 1 +#define FRAME_PTR_OFFSET 3 #define FRAME_OFFSET 0 int backtrace( void **buffer, int max_frames ) |