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
This commit is contained in:
oharboe 2008-06-16 18:40:31 +00:00
parent 85fc1e06fa
commit d52d7f69be
1 changed files with 2 additions and 0 deletions

View File

@ -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;