elf.c (backtrace_initialize): Always set *fileline_fn.
authorIan Lance Taylor <iant@golang.org>
Mon, 12 Jun 2017 03:25:04 +0000 (03:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 12 Jun 2017 03:25:04 +0000 (03:25 +0000)
commitd1609a232616d0a85f2f7bd9ebf4dae4b11fd481
tree9b4b2fbd658631dc5cb019d57ba0843423218b4b
parent1e7a4be3a1f37e9feb5b5b3a6a1f9a31d7a2cd7e
elf.c (backtrace_initialize): Always set *fileline_fn.

* elf.c (backtrace_initialize): Always set *fileline_fn.
* ttest.c: New file.
* btest.c: Move support functions into testlib.c.  Change calls to
check to pass file name.
* testlib.c: New file, copied from (part of) btest.c.
* testlib.h: New file, declarations for testlib.c.
* edtest.c: Use testlib.h and testlib.c.
* configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
* Makefile.am (btest_SOURCES): Add testlib.c.
(edtest_SOURCES): Likewise.
(CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
(ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
* configure, Makefile.in: Rebuild.

From-SVN: r249111
libbacktrace/ChangeLog
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/btest.c
libbacktrace/configure
libbacktrace/configure.ac
libbacktrace/edtest.c
libbacktrace/elf.c
libbacktrace/testlib.c [new file with mode: 0644]
libbacktrace/testlib.h [new file with mode: 0644]
libbacktrace/ttest.c [new file with mode: 0644]