Commit b84ff1dd32

Andrew Kelley <andrew@ziglang.org>
2019-07-03 01:44:49
update the default panic handler on freestanding
Now the infinite loop has a `@breakpoint()` in there.
1 parent 57d6724
Changed files (1)
std
special
std/special/panic.zig
@@ -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);