zephyrproject-rtos / openocd

OpenOCD with Zephyr patches for building Zephyr SDK
Other
28 stars 45 forks source link

Read Zephyr caller-saved registers if saved on IRQ context on ARC #56

Open bdmendes opened 1 year ago

bdmendes commented 1 year ago

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.