From: oharboe Date: Mon, 16 Jun 2008 18:40:31 +0000 (+0000) Subject: GDB timeout fix. If a script takes a long time and does not produce any output, ping... X-Git-Tag: v0.1.0~579 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=d52d7f69beb2b313d92c79e45b5d71a1729e43a4 GDB timeout fix. If a script takes a long time and does not produce any output, ping between every command. git-svn-id: svn://svn.berlios.de/openocd/trunk@710 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/helper/command.c b/src/helper/command.c index 3cf531b7e6..968a8e4b7e 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -411,6 +411,8 @@ int command_run_line(command_context_t *context, char *line) char *words[128] = {0}; int retval; int i; + + LOG_USER_N("%s", ""); /* Keep GDB connection alive*/ if ((!context) || (!line)) return ERROR_INVALID_ARGUMENTS;