LLDB  mainline
RegisterContextPOSIXCore_s390x.h
Go to the documentation of this file.
1 //===-- RegisterContextPOSIXCore_s390x.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_S390X_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_S390X_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::WritableDataBufferSP &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 WriteGPR() override;
44 
45  bool WriteFPR() override;
46 
47 private:
48  lldb::DataBufferSP m_gpr_buffer;
50 
51  lldb::DataBufferSP m_fpr_buffer;
53 };
54 
55 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_S390X_H
RegisterContextCorePOSIX_s390x::WriteAllRegisterValues
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_s390x.cpp:89
RegisterContextCorePOSIX_s390x::HardwareSingleStep
bool HardwareSingleStep(bool enable) override
Definition: RegisterContextPOSIXCore_s390x.cpp:94
lldb_private::RegisterValue
Definition: RegisterValue.h:28
RegisterContextCorePOSIX_s390x::RegisterContextCorePOSIX_s390x
RegisterContextCorePOSIX_s390x(lldb_private::Thread &thread, lldb_private::RegisterInfoInterface *register_info, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
Definition: RegisterContextPOSIXCore_s390x.cpp:19
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
RegisterUtilities.h
RegisterContextCorePOSIX_s390x::ReadGPR
bool ReadGPR() override
Definition: RegisterContextPOSIXCore_s390x.cpp:38
RegisterContextCorePOSIX_s390x::WriteFPR
bool WriteFPR() override
Definition: RegisterContextPOSIXCore_s390x.cpp:47
RegisterContextCorePOSIX_s390x::WriteGPR
bool WriteGPR() override
Definition: RegisterContextPOSIXCore_s390x.cpp:42
RegisterContextCorePOSIX_s390x::ReadAllRegisterValues
bool ReadAllRegisterValues(lldb::WritableDataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_s390x.cpp:79
lldb_private::DataExtractor
Definition: DataExtractor.h:48
lldb_private::Thread
Definition: Thread.h:61
RegisterContextPOSIX_s390x.h
RegisterContextCorePOSIX_s390x::~RegisterContextCorePOSIX_s390x
~RegisterContextCorePOSIX_s390x() override
RegisterContextPOSIX_s390x
Definition: RegisterContextPOSIX_s390x.h:18
RegisterContextCorePOSIX_s390x::ReadRegister
bool ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_s390x.cpp:52
RegisterContextCorePOSIX_s390x::m_fpr
lldb_private::DataExtractor m_fpr
Definition: RegisterContextPOSIXCore_s390x.h:52
RegisterContextCorePOSIX_s390x::m_gpr
lldb_private::DataExtractor m_gpr
Definition: RegisterContextPOSIXCore_s390x.h:49
RegisterContextCorePOSIX_s390x
Definition: RegisterContextPOSIXCore_s390x.h:16
DataExtractor.h
RegisterContextCorePOSIX_s390x::ReadFPR
bool ReadFPR() override
Definition: RegisterContextPOSIXCore_s390x.cpp:40
RegisterContextCorePOSIX_s390x::m_gpr_buffer
lldb::DataBufferSP m_gpr_buffer
Definition: RegisterContextPOSIXCore_s390x.h:48
RegisterContextCorePOSIX_s390x::m_fpr_buffer
lldb::DataBufferSP m_fpr_buffer
Definition: RegisterContextPOSIXCore_s390x.h:51
RegisterContextCorePOSIX_s390x::WriteRegister
bool WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_s390x.cpp:84