arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication
authorSimon Barner <barner@gmx.de>
Fri, 16 Sep 2011 19:15:19 +0000 (21:15 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 8 Oct 2011 21:10:20 +0000 (23:10 +0200)
- Ticket: #35

src/jtag/drivers/arm-jtag-ew.c

index b0c522f7735a31791677d36492c8e8dbed4442ac..6af33046c1fbc323958e1a12961c04ab9250df0a 100644 (file)
@@ -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