]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_x86_64.h
MFV r318931: 8063 verify that we do not attempt to access inactive txg
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / Process / elf-core / RegisterContextPOSIXCore_x86_64.h
1 //===-- RegisterContextPOSIXCore_x86_64.h -----------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_RegisterContextCorePOSIX_x86_64_h_
11 #define liblldb_RegisterContextCorePOSIX_x86_64_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "Plugins/Process/Utility/RegisterContextPOSIX_x86.h"
18
19 class RegisterContextCorePOSIX_x86_64 : public RegisterContextPOSIX_x86 {
20 public:
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);
26
27   bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
28                     lldb_private::RegisterValue &value) override;
29
30   bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
31                      const lldb_private::RegisterValue &value) override;
32
33   bool ReadAllRegisterValues(lldb::DataBufferSP &data_sp) override;
34
35   bool WriteAllRegisterValues(const lldb::DataBufferSP &data_sp) override;
36
37   bool HardwareSingleStep(bool enable) override;
38
39 protected:
40   bool ReadGPR() override;
41
42   bool ReadFPR() override;
43
44   bool WriteGPR() override;
45
46   bool WriteFPR() override;
47
48 private:
49   std::unique_ptr<uint8_t[]> m_gpregset;
50   std::unique_ptr<uint8_t[]> m_fpregset;
51 };
52
53 #endif // liblldb_RegisterContextCorePOSIX_x86_64_h_