diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-12 13:44:04 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-12 13:44:04 -0400 |
| commit | 90a323e3b34cfecdf9df55d8a03d03649609f162 (patch) | |
| tree | c9dcf3b40e6b0de736f0c38864383a01b369439c /src/stdlib/stacktrace.h | |
| parent | ba555a8aca47a78acb173780fd252b19d3cdd36e (diff) | |
Replace addr2line with libbacktrace to get improved stack traces
Diffstat (limited to 'src/stdlib/stacktrace.h')
| -rw-r--r-- | src/stdlib/stacktrace.h | 5 |
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); |
