rCore-Tutorial-v3
rCore-Tutorial-v3 copied to clipboard
stack backtrace
- Update the stack backtrace method
- Turn off the -C force-frame-pointers flag, which may cause unnecessary overhead.
- The new method should be able to run normally on the alloc-enabled branch
A simple test looks like this:
[kernel] Panicked at src/mm/page_table.rs:178 translated_str: not implemented
---START BACKTRACE---
0x80010a64 (+638) backtrace
0x80010914 (+188) rust_begin_unwind
0x80021624 (+44) core::panicking::panic_fmt
0x8000fb1c (+364) os::mm::page_table::translated_str
0x800072ee (+44) os::syscall::process::sys_exec
0x800067f4 (+456) trap_handler
---END BACKTRACE---
Very Good! @Godones