riscv-openocd/src
Tomas Vanek 09731b69a6 Revert "Remove duplicate of a counter in hwthread_update_threads"
Commit 0cedf10f8f ("Remove duplicate of a counter in
hwthread_update_threads") introduced a code bug.

In the second foreach_smp_target() loop, variable "threads_found"
gets passed to routine hwthread_fill_thread(). By removing the
counting of threads_found from the second loop, the
incorrect thread counter value gets passed to hwthread_fill_thread().

Change-Id: Ie89e53ccd28bb72b6838ef2f12106a1fe8d00994
Suggested-by: Daniel Goehring <dgoehrin@os.amperecomputing.com>
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7307
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2022-11-11 20:22:53 +00:00
..
flash flash: stmqspi: fix clang error 'dead assignment' 2022-11-11 20:12:48 +00:00
helper helper/types: use unsigned type for all h_u64_to_le() and similar 2022-11-11 20:10:05 +00:00
jtag jtag/drivers/cmsis_dap: prevent CDC missdetect as CMSIS-DAP bulk 2022-11-11 20:22:25 +00:00
pld fix leaky file-handle in virtex2 driver 2022-10-08 07:54:49 +00:00
rtos Revert "Remove duplicate of a counter in hwthread_update_threads" 2022-11-11 20:22:53 +00:00
rtt openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
server openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
svf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
target dsp5680xx: fix clang error core.UndefinedBinaryOperatorResult 2022-11-11 20:11:22 +00:00
transport openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
xsvf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
hello.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00