summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-10-12 23:24:05 +0000
committerGreg Clayton <gclayton@apple.com>2012-10-12 23:24:05 +0000
commitb556c9b9dbbac26c1323452c41f2d3a1aca004c9 (patch)
treed18a842f6fb8eab64783014323ed41eeac682dfc
parent4453e8453efa1d2d16c3dceed3d7b13c412e8d82 (diff)
downloadbcm5719-llvm-b556c9b9dbbac26c1323452c41f2d3a1aca004c9.tar.gz
bcm5719-llvm-b556c9b9dbbac26c1323452c41f2d3a1aca004c9.zip
<rdar://problem/12489931>
Memory write wasn't working (assert was firing) when writing memory. llvm-svn: 165848
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
index 7600ab61625..bec5c5b1a8e 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
@@ -671,7 +671,7 @@ CommunicationKDP::SendRequestWriteMemory (lldb::addr_t addr,
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);
OpenPOWER on IntegriCloud