openocd/src/rtos
Frank Dischner 3865c411ee FreeRTOS: Fix current thread ID when no threads are active
When there are no rtos threads or none are active, a fake thread with
ID 1 is created for the current execution, but the current thread ID was
never set to this new fake ID. This would lead to an incorrect attempt to
read stacked registers for this fake thread. Explicitly setting the
current thread ID to the fake ID ensures that the registers are read from
the core instead of calling freertos_get_thread_reg_list.

Signed-off-by: Frank Dischner <frank.dischner@gmail.com>
Change-Id: I694509a0e01df089429b20ff1b879fc0592b532d
Reviewed-on: https://review.openocd.org/c/openocd/+/6934
Tested-by: jenkins
Reviewed-by: Asier Llano <asierllano@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2022-08-08 20:47:52 +00:00
..
FreeRTOS.c FreeRTOS: Fix current thread ID when no threads are active 2022-08-08 20:47:52 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
ThreadX.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
chibios.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
chromium-ec.c openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
eCos.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
embKernel.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
hwthread.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
linux.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
linux_header.h openocd: src: add GPL license tag on files that miss it 2022-07-23 13:13:39 +00:00
mqx.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
nuttx.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
nuttx_header.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
riot.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_chibios_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_chibios_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_ecos_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_ecos_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_embkernel_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_embkernel_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_mqx_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_mqx_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_riot_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_riot_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_standard_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_standard_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_ucos_iii_stackings.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
rtos_ucos_iii_stackings.h openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
uCOS-III.c openocd: src/rtos: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:32 +00:00
zephyr.c openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00