| author | |
| committer | |
| log | b84ff1dd325b14bc4a6fc37109b5af8203e6a517 |
| tree | 8cbde2c28ddd61e845a2f51ebdb8eaf444ff7723 |
| parent | 57d6724186ead79ac76491f42390c0d581a76b04 |
| signature |
Now the infinite loop has a `@breakpoint()` in there.1 files changed, 3 insertions(+), 1 deletions(-)
std/special/panic.zig+3-1| ... | @@ -10,7 +10,9 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn | ... | @@ -10,7 +10,9 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn |
| 10 | @setCold(true); | 10 | @setCold(true); |
| 11 | switch (builtin.os) { | 11 | switch (builtin.os) { |
| 12 | .freestanding => { | 12 | .freestanding => { |
| 13 | while (true) {} | 13 | while (true) { |
| 14 | @breakpoint(); | ||
| 15 | } | ||
| 14 | }, | 16 | }, |
| 15 | .wasi => { | 17 | .wasi => { |
| 16 | std.debug.warn("{}", msg); | 18 | std.debug.warn("{}", msg); |