mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
bcf46d9eab
commit
22f25a9e4f
23 changed files with 125 additions and 37 deletions
14
log.c
14
log.c
|
|
@ -1,15 +1,15 @@
|
|||
#include "log.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <syslog.h>
|
||||
#include "debug.h"
|
||||
|
||||
static bool colorize = false;
|
||||
static bool do_syslog = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue