1 //===-- RegisterContextPOSIXCore_x86_64.h -----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_RegisterContextCorePOSIX_x86_64_h_
11 #define liblldb_RegisterContextCorePOSIX_x86_64_h_
15 // Other libraries and framework includes
17 #include "Plugins/Process/Utility/RegisterContextPOSIX_x86.h"
19 class RegisterContextCorePOSIX_x86_64 : public RegisterContextPOSIX_x86 {
21 RegisterContextCorePOSIX_x86_64(
22 lldb_private::Thread &thread,
23 lldb_private::RegisterInfoInterface *register_info,
24 const lldb_private::DataExtractor &gpregset,
25 const lldb_private::DataExtractor &fpregset);
27 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
28 lldb_private::RegisterValue &value) override;
30 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
31 const lldb_private::RegisterValue &value) override;
33 bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
35 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
37 bool HardwareSingleStep(bool enable) override;
40 bool ReadGPR() override;
42 bool ReadFPR() override;
44 bool WriteGPR() override;
46 bool WriteFPR() override;
49 std::unique_ptr<uint8_t[]> m_gpregset;
50 std::unique_ptr<uint8_t[]> m_fpregset;
53 #endif // liblldb_RegisterContextCorePOSIX_x86_64_h_