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 LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTPOSIX_PPC64LE_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_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 
42 protected:
43  // 64-bit general purpose registers.
45 
46  // floating-point registers including extended register.
48 
49  // VMX registers.
51 
52  // VSX registers.
54 
55  std::unique_ptr<lldb_private::RegisterInfoInterface> m_register_info_up;
56 
57  // Determines if an extended register set is supported on the processor
58  // running the inferior process.
59  virtual bool IsRegisterSetAvailable(size_t set_index);
60 
61  virtual const lldb_private::RegisterInfo *GetRegisterInfo();
62 
63  bool IsGPR(unsigned reg);
64 
65  bool IsFPR(unsigned reg);
66 
67  bool IsVMX(unsigned reg);
68 
69  bool IsVSX(unsigned reg);
70 
71 };
72 
73 #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTPOSIX_PPC64LE_H
RegisterContextPOSIX_ppc64le::GetRegisterCount
size_t GetRegisterCount() override
Definition: RegisterContextPOSIX_ppc64le.cpp:133
RegisterContextPOSIX_ppc64le::m_vmx_ppc64le
uint64_t m_vmx_ppc64le[k_num_vmx_registers_ppc64le *2]
Definition: RegisterContextPOSIX_ppc64le.h:50
RegisterContextPOSIX_ppc64le::GetRegisterSet
const lldb_private::RegisterSet * GetRegisterSet(size_t set) override
Definition: RegisterContextPOSIX_ppc64le.cpp:167
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
RegisterContextPOSIX_ppc64le::InvalidateAllRegisters
void InvalidateAllRegisters() override
Definition: RegisterContextPOSIX_ppc64le.cpp:121
RegisterContextPOSIX_ppc64le::RegisterContextPOSIX_ppc64le
RegisterContextPOSIX_ppc64le(lldb_private::Thread &thread, uint32_t concrete_frame_idx, lldb_private::RegisterInfoInterface *register_info)
Definition: RegisterContextPOSIX_ppc64le.cpp:114
k_num_fpr_registers_ppc64le
@ k_num_fpr_registers_ppc64le
Definition: lldb-ppc64le-register-enums.h:202
k_num_gpr_registers_ppc64le
@ k_num_gpr_registers_ppc64le
Definition: lldb-ppc64le-register-enums.h:201
RegisterContextPOSIX_ppc64le::m_gpr_ppc64le
uint64_t m_gpr_ppc64le[k_num_gpr_registers_ppc64le]
Definition: RegisterContextPOSIX_ppc64le.h:44
RegisterContextPOSIX_ppc64le::GetGPRSize
virtual size_t GetGPRSize()
Definition: RegisterContextPOSIX_ppc64le.cpp:138
RegisterContextPOSIX_ppc64le::m_fpr_ppc64le
uint64_t m_fpr_ppc64le[k_num_fpr_registers_ppc64le]
Definition: RegisterContextPOSIX_ppc64le.h:47
RegisterInfoInterface.h
RegisterContextPOSIX_ppc64le
Definition: RegisterContextPOSIX_ppc64le.h:18
RegisterContextPOSIX_ppc64le::GetRegisterSize
virtual unsigned GetRegisterSize(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:128
RegisterContextPOSIX_ppc64le::IsVSX
bool IsVSX(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:110
Log.h
lldb_private::Thread
Definition: Thread.h:62
RegisterContextPOSIX_ppc64le::GetRegisterInfoAtIndex
const lldb_private::RegisterInfo * GetRegisterInfoAtIndex(size_t reg) override
Definition: RegisterContextPOSIX_ppc64le.cpp:150
RegisterContextPOSIX_ppc64le::IsRegisterSetAvailable
virtual bool IsRegisterSetAvailable(size_t set_index)
Definition: RegisterContextPOSIX_ppc64le.cpp:179
PPC64LE_DWARF_Registers.h
RegisterContextPOSIX_ppc64le::GetRegisterSetCount
size_t GetRegisterSetCount() override
Definition: RegisterContextPOSIX_ppc64le.cpp:157
set
set(option_framework FRAMEWORK) endif() if(LLDB_ENABLE_PYTHON) get_target_property(python_bindings_dir swig_wrapper_python BINARY_DIR) set(lldb_python_wrapper $
Definition: API/CMakeLists.txt:9
lldb_private::RegisterContext
Definition: RegisterContext.h:17
RegisterContextPOSIX_ppc64le::IsVMX
bool IsVMX(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:106
lldb-ppc64le-register-enums.h
RegisterContextPOSIX_ppc64le::m_vsx_ppc64le
uint64_t m_vsx_ppc64le[k_num_vsx_registers_ppc64le *2]
Definition: RegisterContextPOSIX_ppc64le.h:53
uint32_t
RegisterContextPOSIX_ppc64le::IsGPR
bool IsGPR(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:98
k_num_vmx_registers_ppc64le
@ k_num_vmx_registers_ppc64le
Definition: lldb-ppc64le-register-enums.h:203
RegisterContextPOSIX_ppc64le::IsFPR
bool IsFPR(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:102
RegisterContextPOSIX_ppc64le::m_register_info_up
std::unique_ptr< lldb_private::RegisterInfoInterface > m_register_info_up
Definition: RegisterContextPOSIX_ppc64le.h:55
RegisterContextPOSIX_ppc64le::GetRegisterInfo
virtual const lldb_private::RegisterInfo * GetRegisterInfo()
Definition: RegisterContextPOSIX_ppc64le.cpp:142
RegisterContextPOSIX_ppc64le::GetRegisterName
const char * GetRegisterName(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:174
k_num_vsx_registers_ppc64le
@ k_num_vsx_registers_ppc64le
Definition: lldb-ppc64le-register-enums.h:204
RegisterContext.h
RegisterContextPOSIX_ppc64le::GetRegisterOffset
virtual unsigned GetRegisterOffset(unsigned reg)
Definition: RegisterContextPOSIX_ppc64le.cpp:123