zephyrproject-rtos / openocd

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

rtos: fix Zephyr autodetecting routine #18

Closed EvgeniiDidin closed 4 years ago

EvgeniiDidin commented 4 years ago

Recently introduced hwthread_rtos broke the process of RTOS autodetection for Zephyr. There is a lack of symbols to look up in this RTOS: https://github.com/zephyrproject-rtos/openocd/blob/zephyr-20191003/src/rtos/hwthread.c#L268 This lack cause execution of this branch: https://github.com/zephyrproject-rtos/openocd/blob/zephyr-20191003/src/rtos/rtos.c#L263 After that "No RTOS could be auto-detected!" message is printed and Zephyr RTOS is not detected as expected.

With this commit we introduce the workaround which consists in moving hwthread_rtos at the end of rtos_types[] list.

Signed-off-by: Evgeniy Didin didin@synopsys.com