- 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:
parent
2511b52159
commit
5e9a5c0f28
|
@ -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 gdb_get_packet(connection_t *connection, char *buffer, int *len)
|
||||||
{
|
{
|
||||||
int character;
|
int character;
|
||||||
int count = 0;
|
int count;
|
||||||
int retval;
|
int retval;
|
||||||
char checksum[3];
|
char checksum[3];
|
||||||
unsigned char my_checksum = 0;
|
unsigned char my_checksum = 0;
|
||||||
|
@ -286,6 +286,7 @@ int gdb_get_packet(connection_t *connection, char *buffer, int *len)
|
||||||
} while (character != '$');
|
} while (character != '$');
|
||||||
|
|
||||||
my_checksum = 0;
|
my_checksum = 0;
|
||||||
|
count = 0;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue