Panic: single line backtrace for addr2line.

This commit is contained in:
pca006132 2020-07-10 12:25:32 +08:00
parent c935e450df
commit 2d58193930
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
let _ = backtrace(|ip| {
// Backtrace gives us the return address, i.e. the address after the delay slot,
// but we're interested in the call instruction.
println!("{:#08x}", ip - 2 * 4);
print!("{:#08x} ", ip - 2 * 4);
});
println!("End backtrace");
println!("\nEnd backtrace");
loop {}
}