From: OpenOCD-Gerrit <ope...@us...> - 2021-12-18 17:26:38
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 29e689ede680f0b3bd106b80b9844c45459265e4 (commit) from 33fa237b2ffdfc24b7e0c0861ac7708b21431c8c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 29e689ede680f0b3bd106b80b9844c45459265e4 Author: Antonio Borneo <bor...@gm...> Date: Thu Dec 9 17:55:46 2021 +0100 openocd: add keep_alive during command sleep The command sleep holds the host CPU until it completes. Send keep_alive to GDB, so it will not timeout. Change-Id: I92e9c5fc871b4e6a7695cdc449ca9fb3c1f1d9ec Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6770 Tested-by: jenkins Reviewed-by: Jan Matyas <ma...@co...> diff --git a/src/helper/command.c b/src/helper/command.c index 53ee2508a..1e769d719 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -1145,6 +1145,7 @@ COMMAND_HANDLER(handle_sleep_command) int64_t then = timeval_ms(); while (timeval_ms() - then < (int64_t)duration) { target_call_timer_callbacks_now(); + keep_alive(); usleep(1000); } } else ----------------------------------------------------------------------- Summary of changes: src/helper/command.c | 1 + 1 file changed, 1 insertion(+) hooks/post-receive -- Main OpenOCD repository |