[Lldb-commits] [lldb] r188801 - Include checksum in non-ack mode
Ed Maste
emaste at freebsd.org
Tue Aug 20 07:12:58 PDT 2013
Author: emaste
Date: Tue Aug 20 09:12:58 2013
New Revision: 188801
URL: http://llvm.org/viewvc/llvm-project?rev=188801&view=rev
Log:
Include checksum in non-ack mode
Patch from Abid, Hafiz.
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=188801&r1=188800&r2=188801&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Tue Aug 20 09:12:58 2013
@@ -159,12 +159,9 @@ GDBRemoteCommunication::CalculcateChecks
{
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;
}
More information about the lldb-commits
mailing list