re PR other/67457 (segfault in libbacktrace)
authorIan Lance Taylor <iant@google.com>
Tue, 8 Sep 2015 16:46:16 +0000 (16:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 8 Sep 2015 16:46:16 +0000 (16:46 +0000)
commitc478516be7517e20e150150fea4399d60434bfc3
treeeae6d20512a5643294e17bfb41e704ab2559be16
parent2eab96661b6c08679ffd4a084f59f3935cfcddb9
re PR other/67457 (segfault in libbacktrace)

PR other/67457
* backtrace.c: #include "internal.h".
(struct backtrace_data): Add can_alloc field.
(unwind): If can_alloc is false, don't try to get file/line
information.
(backtrace_full): Set can_alloc field in bdata.
* alloc.c (backtrace_alloc): Don't call error_callback if it is
NULL.
* mmap.c (backtrace_alloc): Likewise.
* internal.h: Update comments for backtrace_alloc and
backtrace_free.

From-SVN: r227533
libbacktrace/ChangeLog
libbacktrace/alloc.c
libbacktrace/backtrace.c
libbacktrace/internal.h
libbacktrace/mmap.c