]> Savannah Git Hosting - gnulib.git/commit
abort-debug: Prefer libbacktrace to execinfo.
authorBruno Haible <bruno@clisp.org>
Sun, 19 May 2024 13:55:21 +0000 (15:55 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 19 May 2024 13:55:21 +0000 (15:55 +0200)
commit55d036b9db33c5f40ad636ed6ebb83d906157c37
treec02499a2c9ea244d7ff7e0d2eb3bad9713d14f35
parent4d74f39ab2d4384a2e472b489979d2c24143d09c
abort-debug: Prefer libbacktrace to execinfo.

* lib/abort-debug.c: Include <backtrace.h>.
(state): New variable.
(print_stack_trace): Add another implementation.
(_gl_pre_abort, rpl_abort): Also test HAVE_LIBBACKTRACE.
* m4/abort-debug.m4 (gl_ABORT_DEBUG_EARLY): Check for libbacktrace.
Set LIBS, not LDFLAGS.
ChangeLog
lib/abort-debug.c
m4/abort-debug.m4