]> git.sur5r.net Git - openocd/commitdiff
- fix gdb packet retransmission omission
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 10 Jan 2008 20:10:53 +0000 (20:10 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 10 Jan 2008 20:10:53 +0000 (20:10 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/server/gdb_server.c

index 4eca88e8b788592fbe408586f7ab13a42b70b2d9..d094a0c96f4f0078485b9b5d2d4677b46e33c79b 100644 (file)
@@ -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 (;;)
                {