arch: riscv: stacktrace: print additional arg when fatal error

Print `sp`/`fp` in traces.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-08-26 14:31:52 +08:00 committed by Anas Nashif
commit 74f46bd421
2 changed files with 27 additions and 17 deletions

View file

@ -16,8 +16,8 @@ tests:
type: multi_line
regex:
- "E: call trace:"
- "E: 0: ra: \\w+"
- "E: 1: ra: \\w+"
- "E: 0: fp: \\w+ ra: \\w+"
- "E: 1: fp: \\w+ ra: \\w+"
arch.common.stack_unwind.riscv_sp:
arch_allow: riscv
integration_platforms:
@ -28,8 +28,8 @@ tests:
type: multi_line
regex:
- "E: call trace:"
- "E: 0: ra: \\w+"
- "E: 1: ra: \\w+"
- "E: 0: sp: \\w+ ra: \\w+"
- "E: 1: sp: \\w+ ra: \\w+"
arch.common.stack_unwind.x86:
arch_allow: x86
extra_configs: