Browse Source
Add call frame information (cfi) directives to the function z_arm_cortex_r_svc, which triggers an SVC exception whose handler will execute a context switch. The return address stored on the stack of a suspended thread will point into z_arm_cortex_r_svc, that is, this function will be the starting point when a debugger tries to produce a call stack for a suspended thread. As the function is written in assembly, most compilers will not emit any cfi automatically. This patch adds cfi directives manually so that the call stack can be unwound. The added cfi directives instruct the compiler to note in the .debug_frame section that the canonical frame address is at offset 0 from r13, i.e., from the stack pointer. Signed-off-by: Emil Kieri <emil.kieri@iar.com>pull/86322/head
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue