From dcbaf677d4b5118d427a3a3b45a3499e22fa8635 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 20 Dec 2017 12:06:54 -0800 Subject: error: add --enable-panic-abort config options For debugging purposes, make it possible to force calling abort() on ERR_PANIC. Signed-off-by: H. Peter Anvin --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3c344abd..071b043c 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,13 @@ AS_IF([test x"$pa_init_cflags" = x], AS_IF([test x"$pa_optimize" = "x-O0"], [PA_ADD_CFLAGS([-fno-omit-frame-pointer])]) +dnl Abort on panic +PA_ARG_ENABLED([panic-abort], + [call abort() on panic to trap in the debugger], + [AC_DEFINE(ABORT_ON_PANIC)]) +AH_TEMPLATE(ABORT_ON_PANIC, +[Define to 1 to call abort() on panics (internal errors), for debugging.]) + dnl Check for library extension PA_LIBEXT -- cgit v1.2.1