[Lldb-commits] [lldb] r165848 - /lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp

Greg Clayton gclayton at apple.com
Fri Oct 12 16:24:06 PDT 2012


Author: gclayton
Date: Fri Oct 12 18:24:05 2012
New Revision: 165848

URL: http://llvm.org/viewvc/llvm-project?rev=165848&view=rev
Log:
<rdar://problem/12489931>

Memory write wasn't working (assert was firing) when writing memory.

Modified:
    lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp

Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp?rev=165848&r1=165847&r2=165848&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp (original)
+++ lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp Fri Oct 12 18:24:05 2012
@@ -671,7 +671,7 @@
     uint32_t command_addr_byte_size = use_64 ? 8 : 4;
     const CommandType command = use_64 ? KDP_WRITEMEM64 : KDP_WRITEMEM;
     // Size is header + address size + uint32_t length
-    const uint32_t command_length = 8 + command_addr_byte_size + 4;
+    const uint32_t command_length = 8 + command_addr_byte_size + 4 + src_len;
     const uint32_t request_sequence_id = m_request_sequence_id;
     MakeRequestPacketHeader (command, request_packet, command_length);
     request_packet.PutMaxHex64 (addr, command_addr_byte_size);





More information about the lldb-commits mailing list