We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae3e129 commit 6524b8dCopy full SHA for 6524b8d
1 file changed
src/main.rs
@@ -9,6 +9,7 @@
9
#![reexport_test_harness_main = "test_main"]
10
#![test_runner(crate::testing::test_runner)]
11
12
+use crate::sched::current_work;
13
use alloc::{
14
boxed::Box,
15
string::{String, ToString},
@@ -70,6 +71,15 @@ fn on_panic(info: &PanicInfo) -> ! {
70
71
location.column(),
72
panic_msg
73
);
74
+ let work = current_work();
75
+ error!(
76
+ "Executable: {:?}",
77
+ work.process
78
+ .executable
79
+ .lock_save_irq()
80
+ .as_ref()
81
+ .map(|p| p.as_str())
82
+ );
83
} else {
84
error!("Kernel panicked at unknown location: {panic_msg}");
85
}
0 commit comments