diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-01-10 20:10:53 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-01-10 20:10:53 +0000 |
commit | 5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3 (patch) | |
tree | a01e2d1d57a1fa8b0c604a43c592fbe77c9eaff1 | |
parent | 2511b521593ab9ddedb9ffaa3c9be9cc64c6b6d4 (diff) |
- fix gdb packet retransmission omission
git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/server/gdb_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 (;;) { |