From 22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 15 Jan 2021 20:39:45 +0000 Subject: Print stack trace on assert() failure or when calling fatal_error() Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use. --- fdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fdm.c') diff --git a/fdm.c b/fdm.c index 39a72f5b..d0f9f9d1 100644 --- a/fdm.c +++ b/fdm.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -15,6 +14,7 @@ #define LOG_MODULE "fdm" #define LOG_ENABLE_DBG 0 #include "log.h" +#include "debug.h" struct handler { int fd; -- cgit v1.3