main: print panic info with semihosting

This commit is contained in:
Astro 2019-09-14 16:52:35 +02:00
parent 1395e8b410
commit 8163d083b9

View File

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