Include checksum in non-ack mode
Patch from Abid, Hafiz.
llvm-svn: 188801
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index edce054..d7efdf2 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -159,12 +159,9 @@
{
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;
}