summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-10 20:10:53 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-10 20:10:53 +0000
commit5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3 (patch)
treea01e2d1d57a1fa8b0c604a43c592fbe77c9eaff1 /src/server
parent2511b521593ab9ddedb9ffaa3c9be9cc64c6b6d4 (diff)
downloadopenocd_libswd-5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3.tar.gz
openocd_libswd-5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3.tar.bz2
openocd_libswd-5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3.tar.xz
openocd_libswd-5e9a5c0f28c7a61ee3c2af51ccb1ee9e2c4f89b3.zip
- fix gdb packet retransmission omission
git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c3
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 (;;)
{