libbacktrace: use ELF symbol table if no debug info available
authorIan Lance Taylor <iant@golang.org>
Thu, 17 Sep 2020 00:03:52 +0000 (17:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 17 Sep 2020 00:04:43 +0000 (17:04 -0700)
commit90c254565122fa5c02114698ce35ac46679c03b0
treec893c6c0c0e87f702441fd7d31f57e522083aa22
parentfd111c419d146ee47c7df9a36a535e8d843d4802
libbacktrace: use ELF symbol table if no debug info available

PR libbacktrace/97080
* fileline.c (backtrace_syminfo_to_full_callback): New function.
(backtrace_syminfo_to_full_error_callback): New function.
* elf.c (elf_nodebug): Call syminfo_fn if possible.
* internal.h (struct backtrace_call_full): Define.
(backtrace_syminfo_to_full_callback): Declare.
(backtrace_syminfo_to_full_error_callback): Declare.
* mtest.c (f3): Only check all[i] if data.index permits.
libbacktrace/elf.c
libbacktrace/fileline.c
libbacktrace/internal.h
libbacktrace/mtest.c