How to acquire backtrace in no_std environment?
I am working in an RTOS project with RISC-V cpu.
I need to compile the Rust code with no_std
, so backtrace is not natively available.
The project is compiled into a ELF, then use objcopy to get only the loadable segments,
then loaded inside Linux kernel by the kernel request_firmware()
API.
How can I print the back trace of the program in Rust?
The backtrace should includes the symbol name and symbol address.
Source: View source