update the default panic handler on freestanding

Now the infinite loop has a `@breakpoint()` in there.
This commit is contained in:
Andrew Kelley 2019-07-02 19:44:49 -04:00
parent 57d6724186
commit b84ff1dd32
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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);