LLDB  mainline
RegisterContextPOSIXCore_x86_64.h
Go to the documentation of this file.
1 //===-- RegisterContextPOSIXCore_x86_64.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_X86_64_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_X86_64_H
11 
14 
16 public:
18  lldb_private::Thread &thread,
20  const lldb_private::DataExtractor &gpregset,
21  llvm::ArrayRef<lldb_private::CoreNote> notes);
22 
23  bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
24  lldb_private::RegisterValue &value) override;
25 
26  bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
27  const lldb_private::RegisterValue &value) override;
28 
29  bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
30 
31  bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
32 
33  bool HardwareSingleStep(bool enable) override;
34 
35 protected:
36  bool ReadGPR() override;
37 
38  bool ReadFPR() override;
39 
40  bool WriteGPR() override;
41 
42  bool WriteFPR() override;
43 
44 private:
45  std::unique_ptr<uint8_t[]> m_gpregset;
46  std::unique_ptr<uint8_t[]> m_fpregset;
47 };
48 
49 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_X86_64_H
RegisterContextCorePOSIX_x86_64::WriteFPR
bool WriteFPR() override
Definition: RegisterContextPOSIXCore_x86_64.cpp:52
RegisterContextCorePOSIX_x86_64::m_fpregset
std::unique_ptr< uint8_t[]> m_fpregset
Definition: RegisterContextPOSIXCore_x86_64.h:46
RegisterContextCorePOSIX_x86_64
Definition: RegisterContextPOSIXCore_x86_64.h:15
RegisterContextCorePOSIX_x86_64::WriteAllRegisterValues
bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_x86_64.cpp:92
lldb_private::RegisterValue
Definition: RegisterValue.h:28
RegisterContextCorePOSIX_x86_64::WriteGPR
bool WriteGPR() override
Definition: RegisterContextPOSIXCore_x86_64.cpp:47
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
RegisterUtilities.h
RegisterContextCorePOSIX_x86_64::HardwareSingleStep
bool HardwareSingleStep(bool enable) override
Definition: RegisterContextPOSIXCore_x86_64.cpp:97
RegisterContextPOSIX_x86.h
RegisterContextCorePOSIX_x86_64::ReadRegister
bool ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_x86_64.cpp:57
RegisterContextCorePOSIX_x86_64::ReadFPR
bool ReadFPR() override
Definition: RegisterContextPOSIXCore_x86_64.cpp:43
lldb_private::DataExtractor
Definition: DataExtractor.h:48
lldb_private::Thread
Definition: Thread.h:60
RegisterContextCorePOSIX_x86_64::RegisterContextCorePOSIX_x86_64
RegisterContextCorePOSIX_x86_64(lldb_private::Thread &thread, lldb_private::RegisterInfoInterface *register_info, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
Definition: RegisterContextPOSIXCore_x86_64.cpp:16
RegisterContextCorePOSIX_x86_64::m_gpregset
std::unique_ptr< uint8_t[]> m_gpregset
Definition: RegisterContextPOSIXCore_x86_64.h:45
RegisterContextCorePOSIX_x86_64::ReadAllRegisterValues
bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override
Definition: RegisterContextPOSIXCore_x86_64.cpp:82
RegisterContextCorePOSIX_x86_64::ReadGPR
bool ReadGPR() override
Definition: RegisterContextPOSIXCore_x86_64.cpp:39
RegisterContextCorePOSIX_x86_64::WriteRegister
bool WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value) override
Definition: RegisterContextPOSIXCore_x86_64.cpp:87
RegisterContextPOSIX_x86
Definition: RegisterContextPOSIX_x86.h:18