Include checksum in non-ack mode

Patch from Abid, Hafiz.

llvm-svn: 188801
This commit is contained in:
Ed Maste 2013-08-20 14:12:58 +00:00
parent 166b874696
commit a6b4c77123
1 changed files with 3 additions and 6 deletions

View File

@ -159,12 +159,9 @@ GDBRemoteCommunication::CalculcateChecksum (const char *payload, size_t payload_
{
int checksum = 0;
// We only need to compute the checksum if we are sending acks
if (GetSendAcks ())
{
for (size_t i = 0; i < payload_length; ++i)
checksum += payload[i];
}
return checksum & 255;
}