LLDB  mainline
RegisterContextPOSIX_ppc64le.h
Go to the documentation of this file.
1 //===-- RegisterContextPOSIX_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_RegisterContextPOSIX_ppc64le_h_
10 #define liblldb_RegisterContextPOSIX_ppc64le_h_
11 
13 #include "RegisterInfoInterface.h"
16 #include "lldb/Utility/Log.h"
17 
19 public:
21  lldb_private::Thread &thread, uint32_t concrete_frame_idx,
23 
24  void InvalidateAllRegisters() override;
25 
26  size_t GetRegisterCount() override;
27 
28  virtual size_t GetGPRSize();
29 
30  virtual unsigned GetRegisterSize(unsigned reg);
31 
32  virtual unsigned GetRegisterOffset(unsigned reg);
33 
34  const lldb_private::RegisterInfo *GetRegisterInfoAtIndex(size_t reg) override;
35 
36  size_t GetRegisterSetCount() override;
37 
38  const lldb_private::RegisterSet *GetRegisterSet(size_t set) override;
39 
40  const char *GetRegisterName(unsigned reg);
41 
43  uint32_t num) override;
44 
45 protected:
46  // 64-bit general purpose registers.
48 
49  // floating-point registers including extended register.
51 
52  // VMX registers.
54 
55  // VSX registers.
57 
58  std::unique_ptr<lldb_private::RegisterInfoInterface> m_register_info_up;
59 
60  // Determines if an extended register set is supported on the processor
61  // running the inferior process.
62  virtual bool IsRegisterSetAvailable(size_t set_index);
63 
64  virtual const lldb_private::RegisterInfo *GetRegisterInfo();
65 
66  bool IsGPR(unsigned reg);
67 
68  bool IsFPR(unsigned reg);
69 
70  bool IsVMX(unsigned reg);
71 
72  bool IsVSX(unsigned reg);
73 
75 };
76 
77 #endif // liblldb_RegisterContextPOSIX_ppc64le_h_
const char * GetRegisterName(unsigned reg)
uint32_t ConvertRegisterKindToRegisterNumber(lldb::RegisterKind kind, uint32_t num) override
Convert from a given register numbering scheme to the lldb register numbering scheme.
uint64_t m_vmx_ppc64le[k_num_vmx_registers_ppc64le *2]
uint64_t m_gpr_ppc64le[k_num_gpr_registers_ppc64le]
virtual unsigned GetRegisterOffset(unsigned reg)
RegisterInfo interface to patch RegisterInfo structure for archs.
virtual unsigned GetRegisterSize(unsigned reg)
uint64_t m_fpr_ppc64le[k_num_fpr_registers_ppc64le]
RegisterContextPOSIX_ppc64le(lldb_private::Thread &thread, uint32_t concrete_frame_idx, lldb_private::RegisterInfoInterface *register_info)
virtual bool IsRegisterSetAvailable(size_t set_index)
const lldb_private::RegisterInfo * GetRegisterInfoAtIndex(size_t reg) override
virtual const lldb_private::RegisterInfo * GetRegisterInfo()
uint64_t m_vsx_ppc64le[k_num_vsx_registers_ppc64le *2]
std::unique_ptr< lldb_private::RegisterInfoInterface > m_register_info_up
const lldb_private::RegisterSet * GetRegisterSet(size_t set) override