[Lldb-commits] [lldb] r369904 - Fix a type mismatch error in GDBRemoteCommunicationServerCommon

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 26 05:42:28 PDT 2019


Author: labath
Date: Mon Aug 26 05:42:28 2019
New Revision: 369904

URL: http://llvm.org/viewvc/llvm-project?rev=369904&view=rev
Log:
Fix a type mismatch error in GDBRemoteCommunicationServerCommon

GetU64 returns a uint64_t. Don't store it in size_t as that is only
32-bit on 32-bit platforms.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp?rev=369904&r1=369903&r2=369904&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp Mon Aug 26 05:42:28 2019
@@ -550,7 +550,7 @@ GDBRemoteCommunicationServerCommon::Hand
   packet.SetFilePos(::strlen("vFile:pread:"));
   int fd = packet.GetS32(-1);
   if (packet.GetChar() == ',') {
-    size_t count = packet.GetU64(UINT64_MAX);
+    uint64_t count = packet.GetU64(UINT64_MAX);
     if (packet.GetChar() == ',') {
       off_t offset = packet.GetU64(UINT32_MAX);
       if (count == UINT64_MAX) {




More information about the lldb-commits mailing list