This ARC-specific patch allows reading caller-saved registers from the thread's stack if an interrupt entry caused them to be automatically pushed on the thread's stack (RIRQ) or by the ISR (FIRQ). One can test this in gdb by fetching saved registers from an inactive thread.
https://github.com/zephyrproject-rtos/zephyr/pull/61106 is required for this to be effective, but OpenOCD won't break with this patch if Zephyr is not updated accordingly.
This is based on #57, which was needed for adding further offsets.
This ARC-specific patch allows reading caller-saved registers from the thread's stack if an interrupt entry caused them to be automatically pushed on the thread's stack (RIRQ) or by the ISR (FIRQ). One can test this in
gdb
by fetching saved registers from an inactive thread.https://github.com/zephyrproject-rtos/zephyr/pull/61106 is required for this to be effective, but
OpenOCD
won't break with this patch if Zephyr is not updated accordingly. This is based on #57, which was needed for adding further offsets.