aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/stacktrace.h
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/stdlib/stacktrace.h
parentba555a8aca47a78acb173780fd252b19d3cdd36e (diff)
Replace addr2line with libbacktrace to get improved stack traces
Diffstat (limited to 'src/stdlib/stacktrace.h')
-rw-r--r--src/stdlib/stacktrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdlib/stacktrace.h b/src/stdlib/stacktrace.h
new file mode 100644
index 00000000..e3e04814
--- /dev/null
+++ b/src/stdlib/stacktrace.h
@@ -0,0 +1,5 @@
+#pragma once
+#include <stdio.h>
+
+void initialize_stacktrace(const char *program);
+void print_stacktrace(FILE *out, int offset);