[Lldb-commits] [lldb] [lldb] Skip remote PutFile when MD5 hashes equal (PR #88812)

Anthony Ha via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 15 16:44:23 PDT 2024


================
@@ -684,6 +684,15 @@ Status PlatformRemoteGDBServer::RunShellCommand(
                                           signo_ptr, command_output, timeout);
 }
 
+bool PlatformRemoteGDBServer::CalculateMD5(const FileSpec &file_spec,
+                                           uint64_t &low, uint64_t &high) {
+  if (IsConnected()) {
+    // Note that high/low are switched in the gdb remote communication client
----------------
Awfa wrote:

Good point - I don't see a reason why it is swapped there. I'll change it so it's just consistent.

https://github.com/llvm/llvm-project/pull/88812


More information about the lldb-commits mailing list