From 2d5819393016cc01efdd7a71efa7a71884d9326e Mon Sep 17 00:00:00 2001 From: pca006132 Date: Fri, 10 Jul 2020 12:25:32 +0800 Subject: [PATCH] Panic: single line backtrace for addr2line. --- src/runtime/src/panic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/src/panic.rs b/src/runtime/src/panic.rs index 1eb86af..ab9b8d2 100644 --- a/src/runtime/src/panic.rs +++ b/src/runtime/src/panic.rs @@ -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 {} }