From 5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Thu, 10 Jan 2008 20:10:53 +0000 Subject: [PATCH] - fix gdb packet retransmission omission git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/server/gdb_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (;;) { -- 2.39.5