diff --git a/src/backtrace.cpp b/src/backtrace.cpp index 05cffcd..e537f6a 100644 --- a/src/backtrace.cpp +++ b/src/backtrace.cpp @@ -93,7 +93,6 @@ static void install_crash_handler(void (*hdlr)(int, siginfo_t *, void *)) { sigaction(SIGBUS, &action, nullptr); sigaction(SIGSEGV, &action, nullptr); sigaction(SIGABRT, &action, nullptr); - sigaction(SIGTRAP, &action, nullptr); sigaction(SIGFPE, &action, nullptr); } } // namespace diff --git a/src/thespian.zig b/src/thespian.zig index 5a5c80f..3cf2069 100644 --- a/src/thespian.zig +++ b/src/thespian.zig @@ -18,6 +18,8 @@ pub var stack_trace_on_errors: bool = false; pub const subprocess = if (builtin.os.tag == .windows) @import("subprocess_windows.zig") else @import("subprocess.zig"); pub const install_debugger = c.install_debugger; +pub const install_backtrace = c.install_backtrace; +pub const install_jitdebugger = c.install_jitdebugger; pub const max_message_size = 8 * 4096; const message_buf_allocator = std.heap.c_allocator; threadlocal var message_buffer: std.ArrayList(u8) = std.ArrayList(u8).init(message_buf_allocator);