aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-15 20:39:45 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-16 19:56:33 +0000
commit22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 (patch)
tree4d0c9bce90d0f0d04c22e9f88b52f910695cfaf6 /client.c
parentMerge branch 'decset-1047-and-1048' (diff)
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.
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 58a500eb..c78c1f59 100644
--- a/client.c
+++ b/client.c
@@ -4,7 +4,6 @@
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
-#include <assert.h>
#include <getopt.h>
#include <signal.h>
#include <errno.h>
@@ -16,6 +15,7 @@
#define LOG_ENABLE_DBG 0
#include "log.h"
#include "client-protocol.h"
+#include "debug.h"
#include "foot-features.h"
#include "version.h"
#include "xmalloc.h"