[Lldb-commits] [lldb] b2a5dd1 - [LLDB] Fix the build for ppc64le linux
Martin Storsjö via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 18 01:54:30 PDT 2022
Author: Martin Storsjö
Date: 2022-10-18T11:54:19+03:00
New Revision: b2a5dd12a47a784f09628f1c10ab369c3b2c3c88
URL: https://github.com/llvm/llvm-project/commit/b2a5dd12a47a784f09628f1c10ab369c3b2c3c88
DIFF: https://github.com/llvm/llvm-project/commit/b2a5dd12a47a784f09628f1c10ab369c3b2c3c88.diff
LOG: [LLDB] Fix the build for ppc64le linux
812ad2167bd2e27f5d0dee07bb03a5910616e0b6 changed the signature of
RegisterValue::SetFromMemoryData.
Added:
Modified:
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
index e96a41fe86d01..cb6f81b28f7cc 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
@@ -184,7 +184,7 @@ Status NativeRegisterContextLinux_ppc64le::ReadRegister(
uint32_t fpr_offset = CalculateFprOffset(reg_info);
assert(fpr_offset < sizeof m_fpr_ppc64le);
uint8_t *src = (uint8_t *)&m_fpr_ppc64le + fpr_offset;
- reg_value.SetFromMemoryData(reg_info, src, reg_info->byte_size,
+ reg_value.SetFromMemoryData(*reg_info, src, reg_info->byte_size,
eByteOrderLittle, error);
} else if (IsVSX(reg)) {
uint32_t vsx_offset = CalculateVsxOffset(reg_info);
@@ -207,7 +207,7 @@ Status NativeRegisterContextLinux_ppc64le::ReadRegister(
dst += 8;
src = (uint8_t *)&m_fpr_ppc64le + vsx_offset / 2;
::memcpy(dst, src, 8);
- reg_value.SetFromMemoryData(reg_info, &value, reg_info->byte_size,
+ reg_value.SetFromMemoryData(*reg_info, &value, reg_info->byte_size,
eByteOrderLittle, error);
} else {
error = ReadVMX();
@@ -217,7 +217,7 @@ Status NativeRegisterContextLinux_ppc64le::ReadRegister(
// Get pointer to m_vmx_ppc64le variable and set the data from it.
uint32_t vmx_offset = vsx_offset - sizeof(m_vsx_ppc64le) / 2;
uint8_t *src = (uint8_t *)&m_vmx_ppc64le + vmx_offset;
- reg_value.SetFromMemoryData(reg_info, src, reg_info->byte_size,
+ reg_value.SetFromMemoryData(*reg_info, src, reg_info->byte_size,
eByteOrderLittle, error);
}
} else if (IsVMX(reg)) {
@@ -229,7 +229,7 @@ Status NativeRegisterContextLinux_ppc64le::ReadRegister(
uint32_t vmx_offset = CalculateVmxOffset(reg_info);
assert(vmx_offset < sizeof m_vmx_ppc64le);
uint8_t *src = (uint8_t *)&m_vmx_ppc64le + vmx_offset;
- reg_value.SetFromMemoryData(reg_info, src, reg_info->byte_size,
+ reg_value.SetFromMemoryData(*reg_info, src, reg_info->byte_size,
eByteOrderLittle, error);
} else if (IsGPR(reg)) {
error = ReadGPR();
@@ -237,7 +237,7 @@ Status NativeRegisterContextLinux_ppc64le::ReadRegister(
return error;
uint8_t *src = (uint8_t *) &m_gpr_ppc64le + reg_info->byte_offset;
- reg_value.SetFromMemoryData(reg_info, src, reg_info->byte_size,
+ reg_value.SetFromMemoryData(*reg_info, src, reg_info->byte_size,
eByteOrderLittle, error);
} else {
return Status("failed - register wasn't recognized to be a GPR, FPR, VSX "
More information about the lldb-commits
mailing list