- fix break caused by r2208 when using --pipe option
- issue is gdb stdin buffer gets full before we redirect openocd output git-svn-id: svn://svn.berlios.de/openocd/trunk@2350 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
bc9df17e42
commit
1d9ce8d2b3
|
@ -205,8 +205,6 @@ int handle_debug_level_command(struct command_context_s *cmd_ctx, char *cmd, cha
|
||||||
else if (argc > 1)
|
else if (argc > 1)
|
||||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||||
|
|
||||||
command_print(cmd_ctx, "debug_level: %i", debug_level);
|
|
||||||
|
|
||||||
if (debug_level >= LOG_LVL_DEBUG && server_use_pipes == 1)
|
if (debug_level >= LOG_LVL_DEBUG && server_use_pipes == 1)
|
||||||
{
|
{
|
||||||
/* if we are enabling debug info then we need to write to a log file
|
/* if we are enabling debug info then we need to write to a log file
|
||||||
|
@ -219,6 +217,8 @@ int handle_debug_level_command(struct command_context_s *cmd_ctx, char *cmd, cha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command_print(cmd_ctx, "debug_level: %i", debug_level);
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue