The backtrace functions backtrace_full, backtrace_print and backtrace_simple walk the call stack, but make sure to skip the first entry, in order to skip over the functions themselves, and start the backtrace at the caller of the functions. When compiling with -flto, the functions may be inlined, causing them to skip over the caller instead. Fix this by declaring the functions with __attribute__((noinline)). 2019-02-08 Tom de Vries <tdevries@suse.de> * backtrace.c (backtrace_full): Declare with __attribute__((noinline)). * print.c (backtrace_print): Same. * simple.c (backtrace_simple): Same. From-SVN: r268668
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
ChangeLog.jit | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alloc.c | Loading commit data... | |
allocfail.c | Loading commit data... | |
allocfail.sh | Loading commit data... | |
atomic.c | Loading commit data... | |
backtrace-supported.h.in | Loading commit data... | |
backtrace.c | Loading commit data... | |
backtrace.h | Loading commit data... | |
btest.c | Loading commit data... | |
config.h.in | Loading commit data... | |
configure | Loading commit data... | |
configure.ac | Loading commit data... | |
dwarf.c | Loading commit data... | |
edtest.c | Loading commit data... | |
edtest2.c | Loading commit data... | |
elf.c | Loading commit data... | |
fileline.c | Loading commit data... | |
filetype.awk | Loading commit data... | |
install-debuginfo-for-buildid.sh.in | Loading commit data... | |
instrumented_alloc.c | Loading commit data... | |
internal.h | Loading commit data... | |
mmap.c | Loading commit data... | |
mmapio.c | Loading commit data... | |
nounwind.c | Loading commit data... | |
pecoff.c | Loading commit data... | |
posix.c | Loading commit data... | |
print.c | Loading commit data... | |
read.c | Loading commit data... | |
simple.c | Loading commit data... | |
sort.c | Loading commit data... | |
state.c | Loading commit data... | |
stest.c | Loading commit data... | |
test_format.c | Loading commit data... | |
testlib.c | Loading commit data... | |
testlib.h | Loading commit data... | |
ttest.c | Loading commit data... | |
unittest.c | Loading commit data... | |
unknown.c | Loading commit data... | |
xcoff.c | Loading commit data... | |
ztest.c | Loading commit data... |