[libbacktrace] Add test-cases exercising build-id and dwz
authorTom de Vries <tdevries@suse.de>
Tue, 29 Jan 2019 16:25:46 +0000 (16:25 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 29 Jan 2019 16:25:46 +0000 (16:25 +0000)
commitfddbc19325a3e93a5f72668baa4e4bdeea9ebc7f
tree080a4c5201ecf818750ce6e5e53ed87a00a4bc75
parent7e574f68fa82e7c5f879fd468291ec8b5ebecc83
[libbacktrace] Add test-cases exercising build-id and dwz

Add test-cases b2test_buildid and b3test_dwz_buildid.

The last one triggers the segfault fixed by "[backtrace] Avoid segfault"
( r268275 ).

2019-01-29  Tom de Vries  <tdevries@suse.de>

* install-debuginfo-for-buildid.sh.in: New script.
* Makefile.am (check_PROGRAMS): Add b2test and b3test.
(TESTS): Add b2test_buildid and b3test_dwz_buildid.
* Makefile.in: Regenerate.
* configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
(READELF): Set with AC_CHECK_PROG.
(install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
* configure: Regenerate.
* elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
(elf_open_debugfile_by_buildid): ... here.

From-SVN: r268369
libbacktrace/ChangeLog
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/configure
libbacktrace/configure.ac
libbacktrace/elf.c
libbacktrace/install-debuginfo-for-buildid.sh.in [new file with mode: 0644]