diff options
author | Pavel Labath <labath@google.com> | 2016-08-19 13:14:13 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-08-19 13:14:13 +0000 |
commit | 69dac575d3fba5e1a8907b654245aecaffb130d0 (patch) | |
tree | 5ad68f9a0d0626b4a84146d580af72ac74e13789 /lldb/source/Plugins/Process/gdb-remote | |
parent | 53a45fa4e30f47fbc2efbb2e4e83f579decee119 (diff) | |
download | bcm5719-llvm-69dac575d3fba5e1a8907b654245aecaffb130d0.tar.gz bcm5719-llvm-69dac575d3fba5e1a8907b654245aecaffb130d0.zip |
Fix 32-bit builds after r279232
GetByteSize() of a DataBuffer returns a uint64_t (it probably shouldn't), which isn't implicitly
convertible to size_t.
llvm-svn: 279238
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index 76a7d7d9aba..78e1956c26f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -383,7 +383,7 @@ GDBRemoteRegisterContext::WriteRegisterBytes (const RegisterInfo *reg_info, Data // Set all registers in one packet if (gdb_comm.WriteAllRegisters(m_thread.GetProtocolID(), - {m_reg_data.GetDataStart(), m_reg_data.GetByteSize()})) + {m_reg_data.GetDataStart(), size_t(m_reg_data.GetByteSize())})) { SetAllRegisterValid (false); @@ -586,7 +586,8 @@ GDBRemoteRegisterContext::WriteAllRegisterValues (const lldb::DataBufferSP &data // The data_sp contains the G response packet. if (use_g_packet) { - if (gdb_comm.WriteAllRegisters(m_thread.GetProtocolID(), {data_sp->GetBytes(), data_sp->GetByteSize()})) + if (gdb_comm.WriteAllRegisters(m_thread.GetProtocolID(), + {data_sp->GetBytes(), size_t(data_sp->GetByteSize())})) return true; uint32_t num_restored = 0; |