This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6770

-- gerrit

commit fe62c937162a2bf53904e8d58667cf071b5169af
Author: Antonio Borneo <borneo.anto...@gmail.com>
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 <borneo.anto...@gmail.com>

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

-- 

Reply via email to