1 //===-- RegisterContextPOSIXCore_ppc64le.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_ppc64le_h_
10 #define liblldb_RegisterContextCorePOSIX_ppc64le_h_
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataExtractor.h"
16 class RegisterContextCorePOSIX_ppc64le : public RegisterContextPOSIX_ppc64le {
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);
24 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
25 lldb_private::RegisterValue &value) override;
27 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
28 const lldb_private::RegisterValue &value) override;
31 size_t GetFPRSize() const;
33 size_t GetVMXSize() const;
35 size_t GetVSXSize() const;
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;
48 #endif // liblldb_RegisterContextCorePOSIX_ppc64le_h_