Author: Nicolas Pitre <nico@cam.org>
- Silence errors about keep_alive() not being called frequently enough unless a gdb session is active or debugging is enabled git-svn-id: svn://svn.berlios.de/openocd/trunk@1933 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -385,7 +385,19 @@ void keep_alive()
|
||||
current_time=timeval_ms();
|
||||
if (current_time-last_time>1000)
|
||||
{
|
||||
LOG_WARNING("keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (%lld). Workaround: increase \"set remotetimeout\" in GDB", current_time-last_time);
|
||||
extern int gdb_actual_connections;
|
||||
|
||||
if (gdb_actual_connections)
|
||||
LOG_WARNING("keep_alive() was not invoked in the "
|
||||
"1000ms timelimit. GDB alive packet not "
|
||||
"sent! (%lld). Workaround: increase "
|
||||
"\"set remotetimeout\" in GDB",
|
||||
current_time-last_time);
|
||||
else
|
||||
LOG_DEBUG("keep_alive() was not invoked in the "
|
||||
"1000ms timelimit (%lld). This may cause "
|
||||
"trouble with GDB connections.",
|
||||
current_time-last_time);
|
||||
}
|
||||
if (current_time-last_time>500)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user