forked from OSchip/llvm-project
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:
parent
cb75d92458
commit
adf8adbd77
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue