diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-12-20 12:06:54 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-12-20 12:10:33 -0800 |
commit | dcbaf677d4b5118d427a3a3b45a3499e22fa8635 (patch) | |
tree | 71eed113210236784c1ba17d4a070b753ecd6f70 /configure.ac | |
parent | 7a6bf74d025fa6c961e4fc8292330f09f2be2778 (diff) | |
download | nasm-dcbaf677d4b5118d427a3a3b45a3499e22fa8635.tar.gz |
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 <hpa@linux.intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
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 |