mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
update the default panic handler on freestanding
Now the infinite loop has a `@breakpoint()` in there.
This commit is contained in:
parent
57d6724186
commit
b84ff1dd32
@ -10,7 +10,9 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn
|
||||
@setCold(true);
|
||||
switch (builtin.os) {
|
||||
.freestanding => {
|
||||
while (true) {}
|
||||
while (true) {
|
||||
@breakpoint();
|
||||
}
|
||||
},
|
||||
.wasi => {
|
||||
std.debug.warn("{}", msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user