arch: riscv: use symtab to print function name in stack trace

Selecting `CONFIG_EXCEPTION_STACK_TRACE_SYMTAB` will
enable the symtab generation which will be used in the
stack trace to print the function name of the return
address.

Updated the `stack_unwind` test to test the symbols in a
stack trace.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-05-18 16:49:42 +08:00 committed by Anas Nashif
commit c1a925de98
4 changed files with 57 additions and 4 deletions

View file

@ -73,10 +73,15 @@ Architectures
* RISC-V
* Implemented frame-pointer based stack unwinding.
* The fatal error message triggered from a fault now contains the callee-saved-registers states.
* Implemented stack unwinding
* Frame-pointer can be selected to enable precise stack traces at the expense of slightly
increased size and decreased speed.
* Symbol names can be enabled by selecting :kconfig:option:`CONFIG_EXCEPTION_STACK_TRACE_SYMTAB`
* Xtensa
Kernel