Correct loss of sync protocol error #787
This commit is contained in:
parent
e3fd12ebc6
commit
c9a419e44b
@ -81,6 +81,12 @@ int gdb_getpacket(char *packet, int size)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Reset the packet buffer start character to zero, because function
|
||||||
|
* 'remotePacketProcess()' above overwrites this buffer, and
|
||||||
|
* an arbitrary character may have been placed there. If this is a '$'
|
||||||
|
* character, this will cause this loop to be terminated, which is wrong.
|
||||||
|
*/
|
||||||
|
packet[0] = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} while (packet[0] != '$');
|
} while (packet[0] != '$');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user