1 //===-- RegisterContextPOSIXCore_x86_64.h -----------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_RegisterContextCorePOSIX_x86_64_h_
10 #define liblldb_RegisterContextCorePOSIX_x86_64_h_
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_x86.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
15 class RegisterContextCorePOSIX_x86_64 : public RegisterContextPOSIX_x86 {
17 RegisterContextCorePOSIX_x86_64(
18 lldb_private::Thread &thread,
19 lldb_private::RegisterInfoInterface *register_info,
20 const lldb_private::DataExtractor &gpregset,
21 llvm::ArrayRef<lldb_private::CoreNote> notes);
23 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
24 lldb_private::RegisterValue &value) override;
26 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
27 const lldb_private::RegisterValue &value) override;
29 bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
31 bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
33 bool HardwareSingleStep(bool enable) override;
36 bool ReadGPR() override;
38 bool ReadFPR() override;
40 bool WriteGPR() override;
42 bool WriteFPR() override;
45 std::unique_ptr<uint8_t[]> m_gpregset;
46 std::unique_ptr<uint8_t[]> m_fpregset;
49 #endif // liblldb_RegisterContextCorePOSIX_x86_64_h_