From: ntfreak Date: Thu, 10 Jan 2008 20:10:53 +0000 (+0000) Subject: - fix gdb packet retransmission omission X-Git-Tag: v0.1.0~1031 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3;p=openocd - fix gdb packet retransmission omission git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 4eca88e8..d094a0c9 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -248,7 +248,7 @@ int gdb_put_packet(connection_t *connection, char *buffer, int len) int gdb_get_packet(connection_t *connection, char *buffer, int *len) { int character; - int count = 0; + int count; int retval; char checksum[3]; unsigned char my_checksum = 0; @@ -286,6 +286,7 @@ int gdb_get_packet(connection_t *connection, char *buffer, int *len) } while (character != '$'); my_checksum = 0; + count = 0; for (;;) {