LLDB
mainline
|
#include <EmulateInstructionPPC64.h>
Classes | |
struct | Opcode |
Public Member Functions | |
EmulateInstructionPPC64 (const ArchSpec &arch) | |
llvm::StringRef | GetPluginName () override |
bool | SetTargetTriple (const ArchSpec &arch) override |
bool | SupportsEmulatingInstructionsOfType (InstructionType inst_type) override |
bool | ReadInstruction () override |
bool | EvaluateInstruction (uint32_t evaluate_options) override |
bool | TestEmulation (Stream *out_stream, ArchSpec &arch, OptionValueDictionary *test_data) override |
bool | GetRegisterInfo (lldb::RegisterKind reg_kind, uint32_t reg_num, RegisterInfo ®_info) override |
bool | CreateFunctionEntryUnwind (UnwindPlan &unwind_plan) override |
![]() | |
EmulateInstruction (const ArchSpec &arch) | |
~EmulateInstruction () override=default | |
virtual InstructionCondition | GetInstructionCondition () |
virtual bool | SetInstruction (const Opcode &insn_opcode, const Address &inst_addr, Target *target) |
bool | ReadRegister (const RegisterInfo *reg_info, RegisterValue ®_value) |
uint64_t | ReadRegisterUnsigned (const RegisterInfo *reg_info, uint64_t fail_value, bool *success_ptr) |
bool | WriteRegister (const Context &context, const RegisterInfo *ref_info, const RegisterValue ®_value) |
bool | WriteRegisterUnsigned (const Context &context, const RegisterInfo *reg_info, uint64_t reg_value) |
bool | ReadRegister (lldb::RegisterKind reg_kind, uint32_t reg_num, RegisterValue ®_value) |
bool | WriteRegister (const Context &context, lldb::RegisterKind reg_kind, uint32_t reg_num, const RegisterValue ®_value) |
uint64_t | ReadRegisterUnsigned (lldb::RegisterKind reg_kind, uint32_t reg_num, uint64_t fail_value, bool *success_ptr) |
bool | WriteRegisterUnsigned (const Context &context, lldb::RegisterKind reg_kind, uint32_t reg_num, uint64_t reg_value) |
size_t | ReadMemory (const Context &context, lldb::addr_t addr, void *dst, size_t dst_len) |
uint64_t | ReadMemoryUnsigned (const Context &context, lldb::addr_t addr, size_t byte_size, uint64_t fail_value, bool *success_ptr) |
bool | WriteMemory (const Context &context, lldb::addr_t addr, const void *src, size_t src_len) |
bool | WriteMemoryUnsigned (const Context &context, lldb::addr_t addr, uint64_t uval, size_t uval_byte_size) |
uint32_t | GetAddressByteSize () const |
lldb::ByteOrder | GetByteOrder () const |
const Opcode & | GetOpcode () const |
lldb::addr_t | GetAddress () const |
const ArchSpec & | GetArchitecture () const |
void | SetBaton (void *baton) |
void | SetCallbacks (ReadMemoryCallback read_mem_callback, WriteMemoryCallback write_mem_callback, ReadRegisterCallback read_reg_callback, WriteRegisterCallback write_reg_callback) |
void | SetReadMemCallback (ReadMemoryCallback read_mem_callback) |
void | SetWriteMemCallback (WriteMemoryCallback write_mem_callback) |
void | SetReadRegCallback (ReadRegisterCallback read_reg_callback) |
void | SetWriteRegCallback (WriteRegisterCallback write_reg_callback) |
![]() | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static llvm::StringRef | GetPluginNameStatic () |
static llvm::StringRef | GetPluginDescriptionStatic () |
static EmulateInstruction * | CreateInstance (const ArchSpec &arch, InstructionType inst_type) |
static bool | SupportsEmulatingInstructionsOfTypeStatic (InstructionType inst_type) |
![]() | |
static EmulateInstruction * | FindPlugin (const ArchSpec &arch, InstructionType supported_inst_type, const char *plugin_name) |
static const char * | TranslateRegister (lldb::RegisterKind reg_kind, uint32_t reg_num, std::string ®_name) |
static size_t | ReadMemoryFrame (EmulateInstruction *instruction, void *baton, const Context &context, lldb::addr_t addr, void *dst, size_t length) |
static size_t | WriteMemoryFrame (EmulateInstruction *instruction, void *baton, const Context &context, lldb::addr_t addr, const void *dst, size_t length) |
static bool | ReadRegisterFrame (EmulateInstruction *instruction, void *baton, const RegisterInfo *reg_info, RegisterValue ®_value) |
static bool | WriteRegisterFrame (EmulateInstruction *instruction, void *baton, const Context &context, const RegisterInfo *reg_info, const RegisterValue ®_value) |
static size_t | ReadMemoryDefault (EmulateInstruction *instruction, void *baton, const Context &context, lldb::addr_t addr, void *dst, size_t length) |
static size_t | WriteMemoryDefault (EmulateInstruction *instruction, void *baton, const Context &context, lldb::addr_t addr, const void *dst, size_t length) |
static bool | ReadRegisterDefault (EmulateInstruction *instruction, void *baton, const RegisterInfo *reg_info, RegisterValue ®_value) |
static bool | WriteRegisterDefault (EmulateInstruction *instruction, void *baton, const Context &context, const RegisterInfo *reg_info, const RegisterValue ®_value) |
static bool | GetBestRegisterKindAndNumber (const RegisterInfo *reg_info, lldb::RegisterKind ®_kind, uint32_t ®_num) |
static uint32_t | GetInternalRegisterNumber (RegisterContext *reg_ctx, const RegisterInfo ®_info) |
Private Member Functions | |
Opcode * | GetOpcodeForInstruction (uint32_t opcode) |
bool | EmulateMFSPR (uint32_t opcode) |
bool | EmulateLD (uint32_t opcode) |
bool | EmulateSTD (uint32_t opcode) |
bool | EmulateOR (uint32_t opcode) |
bool | EmulateADDI (uint32_t opcode) |
Private Attributes | |
uint32_t | m_fp = LLDB_INVALID_REGNUM |
Definition at line 18 of file EmulateInstructionPPC64.h.
EmulateInstructionPPC64::EmulateInstructionPPC64 | ( | const ArchSpec & | arch | ) |
Definition at line 30 of file EmulateInstructionPPC64.cpp.
|
overridevirtual |
Reimplemented from lldb_private::EmulateInstruction.
Definition at line 116 of file EmulateInstructionPPC64.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb::eRegisterKindLLDB, gpr_lr_ppc64le, gpr_r1_ppc64le, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetReturnAddressRegister(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), lldb_private::UnwindPlan::SetSourceName(), lldb_private::UnwindPlan::SetUnwindPlanForSignalTrap(), and lldb_private::UnwindPlan::SetUnwindPlanValidAtAllInstructions().
|
static |
Definition at line 47 of file EmulateInstructionPPC64.cpp.
References lldb_private::ArchSpec::GetTriple().
|
private |
Definition at line 357 of file EmulateInstructionPPC64.cpp.
References lldb_private::Bits32(), lldb::eRegisterKindLLDB, lldb_private::GetLog(), gpr_r1_ppc64le, LLDB_LOG, ra, lldb_private::EmulateInstruction::Context::SetRegisterToRegisterPlusOffset(), and lldb_private::EmulateInstruction::Context::type.
|
private |
Definition at line 228 of file EmulateInstructionPPC64.cpp.
References lldb_private::Bits32(), lldb::eRegisterKindLLDB, lldb_private::GetLog(), gpr_r1_ppc64le, LLDB_LOG, ra, lldb_private::EmulateInstruction::Context::SetRegisterToRegisterPlusOffset(), and lldb_private::EmulateInstruction::Context::type.
|
private |
Definition at line 203 of file EmulateInstructionPPC64.cpp.
References lldb_private::Bits32(), lldb::eRegisterKindLLDB, lldb_private::GetLog(), gpr_lr_ppc64le, gpr_r0_ppc64le, LLDB_LOG, arm64_dwarf::lr, and lldb_private::EmulateInstruction::Context::type.
|
private |
Definition at line 324 of file EmulateInstructionPPC64.cpp.
References lldb_private::Bits32(), lldb::eRegisterKindLLDB, lldb_private::GetLog(), gpr_r1_ppc64le, gpr_r30_ppc64le, gpr_r31_ppc64le, LLDB_INVALID_REGNUM, LLDB_LOG, ra, lldb_private::EmulateInstruction::Context::SetRegister(), and lldb_private::EmulateInstruction::Context::type.
|
private |
Definition at line 257 of file EmulateInstructionPPC64.cpp.
References lldb_private::Bits32(), lldb::eRegisterKindLLDB, lldb_private::GetLog(), gpr_lr_ppc64le, gpr_r0_ppc64le, gpr_r1_ppc64le, gpr_r30_ppc64le, gpr_r31_ppc64le, LLDB_LOG, arm64_dwarf::lr, ra, lldb_private::EmulateInstruction::Context::SetRegisterToRegisterPlusOffset(), and lldb_private::EmulateInstruction::Context::type.
|
overridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 159 of file EmulateInstructionPPC64.cpp.
References lldb_private::EmulateInstructionPPC64::Opcode::callback, lldb::eRegisterKindLLDB, gpr_pc_ppc64le, lldb_private::EmulateInstruction::Context::SetNoArgs(), and lldb_private::EmulateInstruction::Context::type.
|
private |
Definition at line 136 of file EmulateInstructionPPC64.cpp.
|
static |
Definition at line 42 of file EmulateInstructionPPC64.cpp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 47 of file EmulateInstructionPPC64.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 26 of file EmulateInstructionPPC64.h.
Referenced by GetPluginName().
|
overridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 68 of file EmulateInstructionPPC64.cpp.
References lldb::eRegisterKindGeneric, lldb::eRegisterKindLLDB, gpr_cr_ppc64le, gpr_lr_ppc64le, gpr_pc_ppc64le, gpr_r1_ppc64le, LLDB_REGNUM_GENERIC_FLAGS, LLDB_REGNUM_GENERIC_PC, LLDB_REGNUM_GENERIC_RA, LLDB_REGNUM_GENERIC_SP, and LLDBTableGetRegisterInfo().
|
static |
Definition at line 33 of file EmulateInstructionPPC64.cpp.
|
overridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 100 of file EmulateInstructionPPC64.cpp.
References lldb::eRegisterKindGeneric, LLDB_INVALID_ADDRESS, LLDB_REGNUM_GENERIC_PC, lldb_private::EmulateInstruction::Context::SetNoArgs(), and lldb_private::EmulateInstruction::Context::type.
|
overridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 57 of file EmulateInstructionPPC64.cpp.
References lldb_private::ArchSpec::GetTriple().
|
inlineoverridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 51 of file EmulateInstructionPPC64.h.
References SupportsEmulatingInstructionsOfTypeStatic().
|
inlinestatic |
Definition at line 34 of file EmulateInstructionPPC64.h.
References lldb_private::eInstructionTypeAll, lldb_private::eInstructionTypeAny, lldb_private::eInstructionTypePCModifying, and lldb_private::eInstructionTypePrologueEpilogue.
Referenced by SupportsEmulatingInstructionsOfType().
|
static |
Definition at line 38 of file EmulateInstructionPPC64.cpp.
|
inlineoverridevirtual |
Implements lldb_private::EmulateInstruction.
Definition at line 59 of file EmulateInstructionPPC64.h.
|
private |
Definition at line 77 of file EmulateInstructionPPC64.h.