main: print panic info with semihosting

This commit is contained in:
Astro 2019-09-14 16:52:35 +02:00
parent 1395e8b410
commit 8163d083b9
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ macro_rules! println {
#[panic_handler]
pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
println!("{}", info);
let mut stdout = hio::hstdout().unwrap();
let _ = writeln!(stdout, "{}", info);
loop {}
}