diff options
| author | Ed Maste <emaste@freebsd.org> | 2013-08-20 14:12:58 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2013-08-20 14:12:58 +0000 |
| commit | a6b4c77123a954d3370c6e05d544f1c0f02ea3fa (patch) | |
| tree | 2456a3e93fd23094c4f3c7f0dead2bb1d4e9e006 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
| parent | 166b8746961d581ea05edc9c15b8a4fec04c2404 (diff) | |
| download | bcm5719-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.cpp | 9 |
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; } |

