Fix wrong type convesrion in ReadRegOperation

The automatic conversion from long int to lldb::addr_t caused sign
extension but for a register read it is an unwanted behaviour. Fix with
forcing different conversion path.

llvm-svn: 233176
This commit is contained in:
Tamas Berghammer 2015-03-25 10:14:19 +00:00
parent cb75d92458
commit adf8adbd77
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ namespace
#else
Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet (POSIX_LOG_REGISTERS));
lldb::addr_t data = PTRACE(PTRACE_PEEKUSER, m_tid, (void*)m_offset, nullptr, 0, m_error);
lldb::addr_t data = static_cast<unsigned long>(PTRACE(PTRACE_PEEKUSER, m_tid, (void*)m_offset, nullptr, 0, m_error));
if (m_error.Success())
m_value = data;