From b84ff1dd325b14bc4a6fc37109b5af8203e6a517 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 2 Jul 2019 19:44:49 -0400 Subject: [PATCH] update the default panic handler on freestanding Now the infinite loop has a `@breakpoint()` in there. --- std/special/panic.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/std/special/panic.zig b/std/special/panic.zig index 92e0d9164c..f42085126b 100644 --- a/std/special/panic.zig +++ b/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);