From e56e5a3929a05d18e560c8e37f1985aeb4b95cc9 Mon Sep 17 00:00:00 2001 From: Simon Barner Date: Fri, 16 Sep 2011 21:15:19 +0200 Subject: [PATCH] arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication - Ticket: #35 --- src/jtag/drivers/arm-jtag-ew.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jtag/drivers/arm-jtag-ew.c b/src/jtag/drivers/arm-jtag-ew.c index b0c522f7..6af33046 100644 --- a/src/jtag/drivers/arm-jtag-ew.c +++ b/src/jtag/drivers/arm-jtag-ew.c @@ -847,6 +847,9 @@ static void armjtagew_debug_buffer(uint8_t *buffer, int length) strcat(line, s); } LOG_DEBUG("%s", line); + + // Prevent GDB timeout (writing to log might take some time) + keep_alive(); } } #endif -- 2.39.5