aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Barner <barner@gmx.de>2011-09-16 21:15:19 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2011-10-08 23:10:20 +0200
commite56e5a3929a05d18e560c8e37f1985aeb4b95cc9 (patch)
tree317fcd9df9839dee98e872a30eb7b146cec330e1 /src
parent830e76fecd9c8475234964d533e7bd79a179c6ca (diff)
downloadriscv-openocd-e56e5a3929a05d18e560c8e37f1985aeb4b95cc9.zip
riscv-openocd-e56e5a3929a05d18e560c8e37f1985aeb4b95cc9.tar.gz
riscv-openocd-e56e5a3929a05d18e560c8e37f1985aeb4b95cc9.tar.bz2
arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication
- Ticket: #35
Diffstat (limited to 'src')
-rw-r--r--src/jtag/drivers/arm-jtag-ew.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/drivers/arm-jtag-ew.c b/src/jtag/drivers/arm-jtag-ew.c
index b0c522f..6af3304 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