[Lldb-commits] [lldb] 011791d - [lldb] [Process/FreeBSDRemote] Fix clang-formatting on ppc commit
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Sun Feb 14 13:35:32 PST 2021
Author: Michał Górny
Date: 2021-02-14T22:34:25+01:00
New Revision: 011791dda43c55cd9d5e53b6119b0cf40c183c48
URL: https://github.com/llvm/llvm-project/commit/011791dda43c55cd9d5e53b6119b0cf40c183c48
DIFF: https://github.com/llvm/llvm-project/commit/011791dda43c55cd9d5e53b6119b0cf40c183c48.diff
LOG: [lldb] [Process/FreeBSDRemote] Fix clang-formatting on ppc commit
Added:
Modified:
lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp
lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h
lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp b/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp
index f923507b595d..98daa256424d 100644
--- a/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp
+++ b/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp
@@ -88,7 +88,8 @@ NativeRegisterContextFreeBSD_powerpc::NativeRegisterContextFreeBSD_powerpc(
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 {
@@ -122,7 +123,6 @@ NativeRegisterContextFreeBSD_powerpc::GetSetForNativeRegNum(
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)
@@ -136,8 +136,8 @@ Status NativeRegisterContextFreeBSD_powerpc::ReadRegisterSet(RegSetKind set) {
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");
}
@@ -148,15 +148,15 @@ Status NativeRegisterContextFreeBSD_powerpc::WriteRegisterSet(RegSetKind set) {
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) {
diff --git a/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h b/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h
index d76fdae1d2e0..456ea30b0029 100644
--- a/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h
+++ b/lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h
@@ -26,10 +26,11 @@ namespace process_freebsd {
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;
diff --git a/lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp b/lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp
index 548830d19a52..f14dc8faaea3 100644
--- a/lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp
+++ b/lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp
@@ -463,12 +463,11 @@ TEST(RegisterContextFreeBSDTest, mips64) {
#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)))
More information about the lldb-commits
mailing list