LLDB mainline
|
#include <ABIMacOSX_arm.h>
Public Member Functions | |
~ABIMacOSX_arm () override=default | |
size_t | GetRedZoneSize () const override |
bool | PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t func_addr, lldb::addr_t returnAddress, llvm::ArrayRef< lldb::addr_t > args) const override |
bool | GetArgumentValues (lldb_private::Thread &thread, lldb_private::ValueList &values) const override |
lldb_private::Status | SetReturnValueObject (lldb::StackFrameSP &frame_sp, lldb::ValueObjectSP &new_value) override |
bool | CreateFunctionEntryUnwindPlan (lldb_private::UnwindPlan &unwind_plan) override |
bool | CreateDefaultUnwindPlan (lldb_private::UnwindPlan &unwind_plan) override |
bool | RegisterIsVolatile (const lldb_private::RegisterInfo *reg_info) override |
bool | CallFrameAddressIsValid (lldb::addr_t cfa) override |
bool | CodeAddressIsValid (lldb::addr_t pc) override |
lldb::addr_t | FixCodeAddress (lldb::addr_t pc) override |
Some targets might use bits in a code address to indicate a mode switch. | |
const lldb_private::RegisterInfo * | GetRegisterInfoArray (uint32_t &count) override |
bool | IsArmv7kProcess () const |
llvm::StringRef | GetPluginName () override |
Public Member Functions inherited from lldb_private::RegInfoBasedABI | |
void | AugmentRegisterInfo (std::vector< DynamicRegisterInfo::Register > ®s) override |
Public Member Functions inherited from lldb_private::ABI | |
~ABI () override | |
virtual size_t | GetRedZoneSize () const =0 |
virtual bool | PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::ArrayRef< lldb::addr_t > args) const =0 |
virtual bool | PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::Type &prototype, llvm::ArrayRef< CallArgument > args) const |
virtual bool | GetArgumentValues (Thread &thread, ValueList &values) const =0 |
lldb::ValueObjectSP | GetReturnValueObject (Thread &thread, CompilerType &type, bool persistent=true) const |
lldb::ValueObjectSP | GetReturnValueObject (Thread &thread, llvm::Type &type, bool persistent=true) const |
virtual Status | SetReturnValueObject (lldb::StackFrameSP &frame_sp, lldb::ValueObjectSP &new_value)=0 |
virtual bool | CreateFunctionEntryUnwindPlan (UnwindPlan &unwind_plan)=0 |
virtual bool | CreateDefaultUnwindPlan (UnwindPlan &unwind_plan)=0 |
virtual bool | RegisterIsVolatile (const RegisterInfo *reg_info)=0 |
virtual bool | GetFallbackRegisterLocation (const RegisterInfo *reg_info, UnwindPlan::Row::RegisterLocation &unwind_regloc) |
virtual bool | CallFrameAddressIsValid (lldb::addr_t cfa)=0 |
virtual bool | CodeAddressIsValid (lldb::addr_t pc)=0 |
virtual lldb::addr_t | FixAnyAddress (lldb::addr_t pc) |
Use this method when you do not know, or do not care what kind of address you are fixing. | |
llvm::MCRegisterInfo & | GetMCRegisterInfo () |
virtual void | AugmentRegisterInfo (std::vector< DynamicRegisterInfo::Register > ®s)=0 |
virtual bool | GetPointerReturnRegister (const char *&name) |
virtual uint64_t | GetStackFrameSize () |
virtual lldb::addr_t | FixDataAddress (lldb::addr_t pc) |
Public Member Functions inherited from lldb_private::PluginInterface | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
virtual llvm::StringRef | GetPluginName ()=0 |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static lldb::ABISP | CreateInstance (lldb::ProcessSP process_sp, const lldb_private::ArchSpec &arch) |
static llvm::StringRef | GetPluginNameStatic () |
Static Public Member Functions inherited from lldb_private::ABI | |
static lldb::ABISP | FindPlugin (lldb::ProcessSP process_sp, const ArchSpec &arch) |
Protected Member Functions | |
lldb::ValueObjectSP | GetReturnValueObjectImpl (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const override |
Protected Member Functions inherited from lldb_private::RegInfoBasedABI | |
bool | GetRegisterInfoByName (llvm::StringRef name, RegisterInfo &info) |
virtual const RegisterInfo * | GetRegisterInfoArray (uint32_t &count)=0 |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) | |
Protected Member Functions inherited from lldb_private::ABI | |
virtual lldb::ValueObjectSP | GetReturnValueObjectImpl (Thread &thread, CompilerType &ast_type) const =0 |
virtual lldb::ValueObjectSP | GetReturnValueObjectImpl (Thread &thread, llvm::Type &ir_type) const |
lldb::ProcessSP | GetProcessSP () const |
Request to get a Process shared pointer. | |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) | |
Additional Inherited Members | |
Static Protected Member Functions inherited from lldb_private::ABI | |
static std::unique_ptr< llvm::MCRegisterInfo > | MakeMCRegisterInfo (const ArchSpec &arch) |
Utility function to construct a MCRegisterInfo using the ArchSpec triple. | |
Protected Attributes inherited from lldb_private::ABI | |
lldb::ProcessWP | m_process_wp |
std::unique_ptr< llvm::MCRegisterInfo > | m_mc_register_info_up |
Definition at line 15 of file ABIMacOSX_arm.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 39 of file ABIMacOSX_arm.h.
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 48 of file ABIMacOSX_arm.h.
References pc, and UINT32_MAX.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1814 of file ABIMacOSX_arm.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), dwarf_pc, dwarf_r7, lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), lldb_private::UnwindPlan::SetSourceName(), lldb_private::UnwindPlan::SetUnwindPlanForSignalTrap(), and lldb_private::UnwindPlan::SetUnwindPlanValidAtAllInstructions().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1789 of file ABIMacOSX_arm.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), dwarf_lr, dwarf_pc, dwarf_sp, lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), and lldb_private::UnwindPlan::SetSourceName().
|
static |
Definition at line 1307 of file ABIMacOSX_arm.cpp.
References lldb_private::ArchSpec::GetTriple(), and lldb_private::ABI::MakeMCRegisterInfo().
Referenced by Initialize(), and Terminate().
|
inlineoverridevirtual |
Some targets might use bits in a code address to indicate a mode switch.
ARM uses bit zero to signify a code address is thumb, so any ARM ABI plug-ins would strip those bits.
Reimplemented from lldb_private::ABI.
Definition at line 55 of file ABIMacOSX_arm.h.
References pc.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1428 of file ABIMacOSX_arm.cpp.
References lldb_private::RegisterContext::ConvertRegisterKindToRegisterNumber(), lldb::eRegisterKindGeneric, error(), lldb_private::Process::GetAddressByteSize(), lldb_private::CompilerType::GetBitSize(), lldb_private::Value::GetCompilerType(), lldb_private::ExecutionContext::GetProcessRef(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoAtIndex(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::Value::GetScalar(), lldb_private::RegisterValue::GetScalarValue(), lldb_private::ValueList::GetSize(), lldb_private::RegisterContext::GetSP(), lldb_private::ValueList::GetValueAtIndex(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerOrReferenceType(), LLDB_INVALID_REGNUM, LLDB_REGNUM_GENERIC_ARG1, lldb_private::RegisterContext::ReadRegister(), lldb_private::Process::ReadScalarIntegerFromMemory(), lldb_private::RegisterValue::SignExtend(), and sp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 78 of file ABIMacOSX_arm.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 74 of file ABIMacOSX_arm.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1302 of file ABIMacOSX_arm.cpp.
|
overridevirtual |
Implements lldb_private::RegInfoBasedABI.
Definition at line 1297 of file ABIMacOSX_arm.cpp.
References g_register_infos, and k_num_register_infos.
|
overrideprotectedvirtual |
Implements lldb_private::ABI.
Definition at line 1541 of file ABIMacOSX_arm.cpp.
References lldb_private::RegisterInfo::byte_size, lldb_private::ValueObjectConstResult::Create(), error(), lldb_private::RegisterValue::GetAsMemoryData(), lldb_private::CompilerType::GetBitSize(), lldb_private::CompilerType::GetByteSize(), lldb_private::Thread::GetProcess(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::Value::GetScalar(), lldb_private::Thread::GetStackFrameAtIndex(), IsArmv7kProcess(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), lldb_private::RegisterContext::ReadRegister(), lldb_private::RegisterContext::ReadRegisterAsUnsigned(), lldb_private::Value::SetCompilerType(), and UINT32_MAX.
|
static |
Definition at line 2020 of file ABIMacOSX_arm.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by ABIARM::Initialize().
bool ABIMacOSX_arm::IsArmv7kProcess | ( | ) | const |
Definition at line 1528 of file ABIMacOSX_arm.cpp.
References lldb_private::ArchSpec::eCore_arm_armv7k, lldb_private::ArchSpec::GetCore(), and lldb_private::ABI::GetProcessSP().
Referenced by GetReturnValueObjectImpl(), and SetReturnValueObject().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1322 of file ABIMacOSX_arm.cpp.
References lldb_private::RegisterInfo::byte_size, lldb_private::Thread::CalculateTarget(), lldb_private::RegisterContext::ConvertRegisterKindToRegisterNumber(), lldb::eRegisterKindGeneric, lldb_private::Address::GetCallableLoadAddress(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfo(), lldb_private::RegisterContext::GetRegisterInfoByName(), LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_PC, LLDB_REGNUM_GENERIC_RA, LLDB_REGNUM_GENERIC_SP, MASK_CPSR_T, lldb_private::RegisterContext::ReadRegisterAsUnsigned(), lldb_private::Address::SetLoadAddress(), lldb_private::RegisterValue::SetUInt32(), sp, lldb_private::RegisterContext::WriteRegister(), and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1865 of file ABIMacOSX_arm.cpp.
References lldb_private::RegisterInfo::name.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 1685 of file ABIMacOSX_arm.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::Fail(), lldb_private::DataExtractor::GetMaxU32(), lldb_private::DataExtractor::GetMaxU64(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoByName(), IsArmv7kProcess(), lldb_private::CompilerType::IsFloatingPointType(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
static |
Definition at line 2025 of file ABIMacOSX_arm.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by ABIARM::Terminate().