riscv-openocd/src/server
Evgeniy Naydanov 2e920a212f break from long loops on shutdown request
In loops that typically take longer time to complete, check if there is
a pending shutdown request. If so, terminate the loop.

This allows to respond to a signal requesting a shutdown during some
loops which do not return control to main OpenOCD loop.

Change-Id: Iace0b58eddde1237832d0f9333a7c7b930565674
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8032
Reviewed-by: Jan Matyas <jan.matyas@codasip.com>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2023-12-24 14:24:38 +00:00
..
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
gdb_server.c server/gdb_server: Log gdb index in debug messages. 2023-10-14 12:04:02 +00:00
gdb_server.h server: gdb: export gdb_actual_connections through a function 2023-05-18 10:14:56 +00:00
ipdbg.c ipdbg: fix 'double free' in case of failed start 2023-07-14 13:59:31 +00:00
ipdbg.h Add IPDBG JtagHost functionality to OpenOCD 2021-05-08 09:51:04 +01:00
rtt_server.c rtt_server: Add option for a message when client connects 2023-11-24 21:06:24 +00:00
rtt_server.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
server.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
server.h break from long loops on shutdown request 2023-12-24 14:24:38 +00:00
startup.tcl openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
tcl_server.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
tcl_server.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
telnet_server.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
telnet_server.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00