From: Simon Barner Date: Fri, 16 Sep 2011 19:15:19 +0000 (+0200) Subject: arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication X-Git-Tag: v0.6.0-rc1~555 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e56e5a3929a05d18e560c8e37f1985aeb4b95cc9;p=openocd arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication - Ticket: #35 --- 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