RegisterContextFreeBSD_powerpc &
NativeRegisterContextFreeBSD_powerpc::GetRegisterInfo() const {
- return static_cast<RegisterContextFreeBSD_powerpc &>(*m_register_info_interface_up);
+ return static_cast<RegisterContextFreeBSD_powerpc &>(
+ *m_register_info_interface_up);
}
uint32_t NativeRegisterContextFreeBSD_powerpc::GetRegisterSetCount() const {
llvm_unreachable("Register does not belong to any register set");
}
-
uint32_t NativeRegisterContextFreeBSD_powerpc::GetUserRegisterCount() const {
uint32_t count = 0;
for (uint32_t set_index = 0; set_index < GetRegisterSetCount(); ++set_index)
return NativeProcessFreeBSD::PtraceWrapper(PT_GETREGS, m_thread.GetID(),
m_reg_data.data());
case FPRegSet:
- return NativeProcessFreeBSD::PtraceWrapper(
- PT_GETFPREGS, m_thread.GetID(), m_reg_data.data() + sizeof(reg));
+ return NativeProcessFreeBSD::PtraceWrapper(PT_GETFPREGS, m_thread.GetID(),
+ m_reg_data.data() + sizeof(reg));
}
llvm_unreachable("NativeRegisterContextFreeBSD_powerpc::ReadRegisterSet");
}
return NativeProcessFreeBSD::PtraceWrapper(PT_SETREGS, m_thread.GetID(),
m_reg_data.data());
case FPRegSet:
- return NativeProcessFreeBSD::PtraceWrapper(
- PT_SETFPREGS, m_thread.GetID(), m_reg_data.data() + sizeof(reg));
+ return NativeProcessFreeBSD::PtraceWrapper(PT_SETFPREGS, m_thread.GetID(),
+ m_reg_data.data() + sizeof(reg));
}
llvm_unreachable("NativeRegisterContextFreeBSD_powerpc::WriteRegisterSet");
}
Status
NativeRegisterContextFreeBSD_powerpc::ReadRegister(const RegisterInfo *reg_info,
- RegisterValue ®_value) {
+ RegisterValue ®_value) {
Status error;
if (!reg_info) {
class NativeProcessFreeBSD;
-class NativeRegisterContextFreeBSD_powerpc : public NativeRegisterContextFreeBSD {
+class NativeRegisterContextFreeBSD_powerpc
+ : public NativeRegisterContextFreeBSD {
public:
NativeRegisterContextFreeBSD_powerpc(const ArchSpec &target_arch,
- NativeThreadProtocol &native_thread);
+ NativeThreadProtocol &native_thread);
uint32_t GetRegisterSetCount() const override;
#if defined(__powerpc__)
-#define EXPECT_GPR_PPC(lldb_reg, fbsd_reg) \
- EXPECT_THAT(GetRegParams(reg_ctx, gpr_##lldb_reg##_powerpc), \
- ::testing::Pair(offsetof(reg, fbsd_reg), \
- sizeof(reg::fbsd_reg)))
-#define EXPECT_FPU_PPC(lldb_reg, fbsd_reg) \
- EXPECT_THAT(GetRegParams(reg_ctx, fpr_##lldb_reg##_powerpc), \
+#define EXPECT_GPR_PPC(lldb_reg, fbsd_reg) \
+ EXPECT_THAT(GetRegParams(reg_ctx, gpr_##lldb_reg##_powerpc), \
+ ::testing::Pair(offsetof(reg, fbsd_reg), sizeof(reg::fbsd_reg)))
+#define EXPECT_FPU_PPC(lldb_reg, fbsd_reg) \
+ EXPECT_THAT(GetRegParams(reg_ctx, fpr_##lldb_reg##_powerpc), \
::testing::Pair(offsetof(fpreg, fbsd_reg) + base_offset, \
sizeof(fpreg::fbsd_reg)))