diff options
author | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
commit | 43e0af06b4b69d784c87c4bfcaea01d825de1e65 (patch) | |
tree | 940b1223e3317439d1cbbd6e59f0421904d90c46 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 402edbbe3918277bfedbd9f138c16ac515d8d9ef (diff) | |
download | bcm5719-llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.tar.gz bcm5719-llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.zip |
Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. Some platforms don't support this modification.
llvm-svn: 164148
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 8225e69f373..ddb31819b8b 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -1215,7 +1215,8 @@ GDBRemoteCommunicationClient::AllocateMemory (size_t size, uint32_t permissions) { m_supports_alloc_dealloc_memory = eLazyBoolYes; char packet[64]; - const int packet_len = ::snprintf (packet, sizeof(packet), "_M%zx,%s%s%s", size, + const int packet_len = ::snprintf (packet, sizeof(packet), "_M%llx,%s%s%s", + (uint64_t)size, permissions & lldb::ePermissionsReadable ? "r" : "", permissions & lldb::ePermissionsWritable ? "w" : "", permissions & lldb::ePermissionsExecutable ? "x" : ""); |