diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-11-25 19:15:31 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-11-25 19:15:31 +0000 |
| commit | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (patch) | |
| tree | d0b329e28aa1f4a0fc00c9763bcb3b2f5bf505ea /source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp | |
| parent | 3b6b9a026ed26abe3a3f1470da00ae1f478c4aca (diff) | |
vendor/lldb/lldb-release_391-r289601vendor/lldb/lldb-release_39-r288847vendor/lldb/lldb-release_39-r288513vendor/lldb/lldb-release_39-r287912
Diffstat (limited to 'source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp')
| -rw-r--r-- | source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp b/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp index df0a008ff5f7..0188c5d30724 100644 --- a/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp +++ b/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp @@ -180,8 +180,8 @@ NativeRegisterContextLinux::DoReadRegisterValue(uint32_t offset, PTRACE_PEEKUSER, m_thread.GetID(), reinterpret_cast<void *>(offset), nullptr, 0, &data); if (error.Success()) - // First cast to an unsigned of the same size to avoid sign extension. - value.SetUInt64(static_cast<unsigned long>(data)); + // First cast to an unsigned of the same size to avoid sign extension. + value.SetUInt(static_cast<unsigned long>(data), size); if (log) log->Printf ("NativeRegisterContextLinux::%s() reg %s: 0x%lx", __FUNCTION__, reg_name, data); |
