build: update to zig-0.16.0-dev.3133+5ec8e45f3
This commit is contained in:
parent
8d359a75a1
commit
d545b10ce8
4 changed files with 27 additions and 30 deletions
|
|
@ -254,11 +254,7 @@ fn store_stack_trace(stack_trace: std.builtin.StackTrace, writer: *std.Io.Writer
|
|||
writer.print("Unable to store stack trace: debug info stripped\n", .{}) catch return;
|
||||
return;
|
||||
}
|
||||
const debug_info = std.debug.getSelfDebugInfo() catch |err| {
|
||||
writer.print("Unable to dump stack trace: Unable to open debug info: {s}\n", .{@errorName(err)}) catch return;
|
||||
return;
|
||||
};
|
||||
std.debug.writeStackTrace(stack_trace, writer, debug_info, .no_color) catch |err| {
|
||||
std.debug.writeStackTrace(&stack_trace, .{ .writer = writer, .mode = .no_color }) catch |err| {
|
||||
writer.print("Unable to dump stack trace: {s}\n", .{@errorName(err)}) catch return;
|
||||
return;
|
||||
};
|
||||
|
|
@ -655,7 +651,7 @@ fn to_result(ret: result) c.thespian_result {
|
|||
if (!(cbor.match(msg, .{ "exit", "normal" }) catch false)) {
|
||||
if (env.get().is("dump-stack-trace")) {
|
||||
const trace_ = @errorReturnTrace();
|
||||
if (trace_) |t| std.debug.dumpStackTrace(t.*);
|
||||
if (trace_) |t| std.debug.dumpStackTrace(t);
|
||||
}
|
||||
}
|
||||
return &error_buffer_tl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue