How to acquire backtrace in no_std environment?

PressRex profile image
by PressRex
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

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More