]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_ppc64le.h
MFC r355940:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / source / Plugins / Process / elf-core / RegisterContextPOSIXCore_ppc64le.h
1 //===-- RegisterContextPOSIXCore_ppc64le.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 liblldb_RegisterContextCorePOSIX_ppc64le_h_
10 #define liblldb_RegisterContextCorePOSIX_ppc64le_h_
11
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataExtractor.h"
15
16 class RegisterContextCorePOSIX_ppc64le : public RegisterContextPOSIX_ppc64le {
17 public:
18   RegisterContextCorePOSIX_ppc64le(
19       lldb_private::Thread &thread,
20       lldb_private::RegisterInfoInterface *register_info,
21       const lldb_private::DataExtractor &gpregset,
22       llvm::ArrayRef<lldb_private::CoreNote> notes);
23
24   bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
25                     lldb_private::RegisterValue &value) override;
26
27   bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
28                      const lldb_private::RegisterValue &value) override;
29
30 protected:
31   size_t GetFPRSize() const;
32
33   size_t GetVMXSize() const;
34
35   size_t GetVSXSize() const;
36
37 private:
38   lldb::DataBufferSP m_gpr_buffer;
39   lldb::DataBufferSP m_fpr_buffer;
40   lldb::DataBufferSP m_vmx_buffer;
41   lldb::DataBufferSP m_vsx_buffer;
42   lldb_private::DataExtractor m_gpr;
43   lldb_private::DataExtractor m_fpr;
44   lldb_private::DataExtractor m_vmx;
45   lldb_private::DataExtractor m_vsx;
46 };
47
48 #endif // liblldb_RegisterContextCorePOSIX_ppc64le_h_