aboutsummaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-12 13:44:04 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-12 13:44:04 -0400
commit90a323e3b34cfecdf9df55d8a03d03649609f162 (patch)
treec9dcf3b40e6b0de736f0c38864383a01b369439c /src/parse.c
parentba555a8aca47a78acb173780fd252b19d3cdd36e (diff)
Replace addr2line with libbacktrace to get improved stack traces
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index fd37fec7..d6ff4e5a 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -24,6 +24,7 @@
#include "stdlib/integers.h"
#include "stdlib/paths.h"
#include "stdlib/print.h"
+#include "stdlib/stacktrace.h"
#include "stdlib/stdlib.h"
#include "stdlib/tables.h"
#include "stdlib/text.h"
@@ -163,7 +164,7 @@ static ast_list_t *_parse_text_helper(parse_ctx_t *ctx, const char **out_pos, ch
highlight_error((ctx)->file, (start), (end), "\x1b[31;1;7m", 2, USE_COLOR); \
fputs("\n", stderr); \
if (getenv("TOMO_STACKTRACE")) \
- print_stack_trace(stderr, 1, 3); \
+ print_stacktrace(stderr, 1); \
if ((ctx)->on_err) \
longjmp(*((ctx)->on_err), 1); \
raise(SIGABRT); \