LLDB  mainline
RegisterContextPOSIXCore_powerpc.h
Go to the documentation of this file.
1 //===-- RegisterContextPOSIXCore_powerpc.h ----------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H
11 
15 
17 public:
19  lldb_private::Thread &thread,
21  const lldb_private::DataExtractor &gpregset,
22  llvm::ArrayRef<lldb_private::CoreNote> notes);
23 
25 
26  bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
27  lldb_private::RegisterValue &value) override;
28 
29  bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
30  const lldb_private::RegisterValue &value) override;
31 
32  bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
33 
34  bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
35 
36  bool HardwareSingleStep(bool enable) override;
37 
38 protected:
39  bool ReadGPR() override;
40 
41  bool ReadFPR() override;
42 
43  bool ReadVMX() override;
44 
45  bool WriteGPR() override;
46 
47  bool WriteFPR() override;
48 
49  bool WriteVMX() override;
50 
51 private:
52  lldb::DataBufferSP m_gpr_buffer;
53  lldb::DataBufferSP m_fpr_buffer;
54  lldb::DataBufferSP m_vec_buffer;
58 };
59 
60 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_POWERPC_H
RegisterContextCorePOSIX_powerpc::WriteVMX
bool WriteVMX() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:60
lldb_private::RegisterValue
Definition: RegisterValue.h:28
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
RegisterContextCorePOSIX_powerpc::WriteGPR
bool WriteGPR() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:50
RegisterContextCorePOSIX_powerpc::ReadRegister
bool ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_powerpc.cpp:65
RegisterContextCorePOSIX_powerpc::HardwareSingleStep
bool HardwareSingleStep(bool enable) override
Definition: RegisterContextPOSIXCore_powerpc.cpp:109
RegisterUtilities.h
RegisterContextCorePOSIX_powerpc::ReadFPR
bool ReadFPR() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:46
RegisterContextCorePOSIX_powerpc::m_gpr_buffer
lldb::DataBufferSP m_gpr_buffer
Definition: RegisterContextPOSIXCore_powerpc.h:52
RegisterContextCorePOSIX_powerpc::ReadGPR
bool ReadGPR() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:44
lldb_private::DataExtractor
Definition: DataExtractor.h:48
RegisterContextCorePOSIX_powerpc::WriteFPR
bool WriteFPR() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:55
lldb_private::Thread
Definition: Thread.h:60
RegisterContextCorePOSIX_powerpc::RegisterContextCorePOSIX_powerpc
RegisterContextCorePOSIX_powerpc(lldb_private::Thread &thread, lldb_private::RegisterInfoInterface *register_info, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
Definition: RegisterContextPOSIXCore_powerpc.cpp:19
RegisterContextCorePOSIX_powerpc::m_gpr
lldb_private::DataExtractor m_gpr
Definition: RegisterContextPOSIXCore_powerpc.h:55
RegisterContextCorePOSIX_powerpc::m_fpr
lldb_private::DataExtractor m_fpr
Definition: RegisterContextPOSIXCore_powerpc.h:56
RegisterContextPOSIX_powerpc.h
RegisterContextPOSIX_powerpc
Definition: RegisterContextPOSIX_powerpc.h:138
RegisterContextCorePOSIX_powerpc::WriteAllRegisterValues
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_powerpc.cpp:104
RegisterContextCorePOSIX_powerpc::ReadVMX
bool ReadVMX() override
Definition: RegisterContextPOSIXCore_powerpc.cpp:48
RegisterContextCorePOSIX_powerpc::ReadAllRegisterValues
bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_powerpc.cpp:94
DataExtractor.h
RegisterContextCorePOSIX_powerpc::~RegisterContextCorePOSIX_powerpc
~RegisterContextCorePOSIX_powerpc() override
RegisterContextCorePOSIX_powerpc::m_fpr_buffer
lldb::DataBufferSP m_fpr_buffer
Definition: RegisterContextPOSIXCore_powerpc.h:53
RegisterContextCorePOSIX_powerpc
Definition: RegisterContextPOSIXCore_powerpc.h:16
RegisterContextCorePOSIX_powerpc::WriteRegister
bool WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_powerpc.cpp:99
RegisterContextCorePOSIX_powerpc::m_vec
lldb_private::DataExtractor m_vec
Definition: RegisterContextPOSIXCore_powerpc.h:57
RegisterContextCorePOSIX_powerpc::m_vec_buffer
lldb::DataBufferSP m_vec_buffer
Definition: RegisterContextPOSIXCore_powerpc.h:54