summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-08-20 14:12:58 +0000
committerEd Maste <emaste@freebsd.org>2013-08-20 14:12:58 +0000
commita6b4c77123a954d3370c6e05d544f1c0f02ea3fa (patch)
tree2456a3e93fd23094c4f3c7f0dead2bb1d4e9e006 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parent166b8746961d581ea05edc9c15b8a4fec04c2404 (diff)
downloadbcm5719-llvm-a6b4c77123a954d3370c6e05d544f1c0f02ea3fa.tar.gz
bcm5719-llvm-a6b4c77123a954d3370c6e05d544f1c0f02ea3fa.zip
Include checksum in non-ack mode
Patch from Abid, Hafiz. llvm-svn: 188801
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index edce0543579..d7efdf2302d 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -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];
- }
+ for (size_t i = 0; i < payload_length; ++i)
+ checksum += payload[i];
+
return checksum & 255;
}
OpenPOWER on IntegriCloud