[libbacktrace] Add test-cases exercising build-id and dwz

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 29 January 2019 16:25 EST

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

- 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.

5c1bcc1b497 [libbacktrace] Add test-cases exercising build-id and dwz
libbacktrace/ChangeLog | 13 ++
libbacktrace/Makefile.am | 50 ++++++
libbacktrace/Makefile.in | 193 ++++++++++++++++++-----
libbacktrace/configure | 60 ++++++-
libbacktrace/configure.ac | 3 +
libbacktrace/elf.c | 4 +-
libbacktrace/install-debuginfo-for-buildid.sh.in | 65 ++++++++
7 files changed, 345 insertions(+), 43 deletions(-)

Upstream: gcc.gnu.org


  • Share