- fix gdb packet retransmission omission

git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-01-10 20:10:53 +00:00
parent 2511b52159
commit 5e9a5c0f28
1 changed files with 2 additions and 1 deletions

View 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 (;;)
{