forked from OSchip/llvm-project
Fix linux arm and mips builds broken by r308282
llvm-svn: 308292
This commit is contained in:
parent
5b8e487b47
commit
4e138e1d8c
|
@ -873,7 +873,7 @@ Status NativeRegisterContextLinux_arm64::DoReadRegisterValue(
|
|||
PTRACE_GETREGSET, m_thread.GetID(), ®set, &ioVec, sizeof regs);
|
||||
if (error.Success()) {
|
||||
ArchSpec arch;
|
||||
if (m_thread.GetProcess()->GetArchitecture(arch))
|
||||
if (m_thread.GetProcess().GetArchitecture(arch))
|
||||
value.SetBytes((void *)(((unsigned char *)(®s)) + offset), 16,
|
||||
arch.GetByteOrder());
|
||||
else
|
||||
|
@ -890,7 +890,7 @@ Status NativeRegisterContextLinux_arm64::DoReadRegisterValue(
|
|||
PTRACE_GETREGSET, m_thread.GetID(), ®set, &ioVec, sizeof regs);
|
||||
if (error.Success()) {
|
||||
ArchSpec arch;
|
||||
if (m_thread.GetProcess()->GetArchitecture(arch))
|
||||
if (m_thread.GetProcess().GetArchitecture(arch))
|
||||
value.SetBytes((void *)(((unsigned char *)(regs)) + offset), 8,
|
||||
arch.GetByteOrder());
|
||||
else
|
||||
|
|
|
@ -953,7 +953,7 @@ NativeRegisterContextLinux_mips64::GetWatchpointHitAddress(uint32_t wp_index) {
|
|||
return LLDB_INVALID_ADDRESS;
|
||||
|
||||
EmulatorBaton baton(
|
||||
static_cast<NativeProcessLinux *>(m_thread.GetProcess().get()), this);
|
||||
static_cast<NativeProcessLinux *>(&m_thread.GetProcess()), this);
|
||||
emulator_ap->SetBaton(&baton);
|
||||
emulator_ap->SetReadMemCallback(&ReadMemoryCallback);
|
||||
emulator_ap->SetReadRegCallback(&ReadRegisterCallback);
|
||||
|
@ -1034,7 +1034,7 @@ Status NativeRegisterContextLinux_mips64::Read_SR_Config(uint32_t offset,
|
|||
PTRACE_GETREGS, m_thread.GetID(), NULL, ®s, sizeof regs);
|
||||
if (error.Success()) {
|
||||
lldb_private::ArchSpec arch;
|
||||
if (m_thread.GetProcess()->GetArchitecture(arch)) {
|
||||
if (m_thread.GetProcess().GetArchitecture(arch)) {
|
||||
void *target_address = ((uint8_t *)®s) + offset +
|
||||
4 * (arch.GetMachine() == llvm::Triple::mips);
|
||||
value.SetUInt(*(uint32_t *)target_address, size);
|
||||
|
|
Loading…
Reference in New Issue