|
LLDB mainline
|
#include <ABISysV_arm64.h>
Public Member Functions | |
| ~ABISysV_arm64 () override=default | |
| size_t | GetRedZoneSize () const override |
| 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 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 | RegisterIsVolatile (const lldb_private::RegisterInfo *reg_info) override |
| bool | CallFrameAddressIsValid (lldb::addr_t cfa) override |
| bool | CodeAddressIsValid (lldb::addr_t pc) override |
| bool | GetPointerReturnRegister (const char *&name) override |
| lldb::addr_t | FixAddress (lldb::addr_t pc, lldb::addr_t mask) override |
| llvm::StringRef | GetPluginName () override |
| lldb::addr_t | FixCodeAddress (lldb::addr_t pc) override |
| Some targets might use bits in a code address to indicate a mode switch. | |
| lldb::addr_t | FixDataAddress (lldb::addr_t pc) override |
| virtual std::optional< MemoryPermissions > | GetMemoryPermissions (lldb_private::RegisterContext ®_ctx, unsigned protection_key, uint32_t original_permissions) override |
| Get the effective memory permissions that result when the permissions referred to by a protection key are applied to the original permissions. | |
| Public Member Functions inherited from ABIAArch64 | |
| lldb::UnwindPlanSP | CreateFunctionEntryUnwindPlan () override |
| lldb::UnwindPlanSP | CreateDefaultUnwindPlan () override |
| Public Member Functions inherited from lldb_private::MCBasedABI | |
| void | AugmentRegisterInfo (std::vector< DynamicRegisterInfo::Register > ®s) override |
| Public Member Functions inherited from lldb_private::ABI | |
| ~ABI () override | |
| 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 |
| lldb::ValueObjectSP | GetReturnValueObject (Thread &thread, CompilerType &type, bool persistent=true) const |
| lldb::ValueObjectSP | GetReturnValueObject (Thread &thread, llvm::Type &type, bool persistent=true) const |
| virtual bool | GetFallbackRegisterLocation (const RegisterInfo *reg_info, UnwindPlan::Row::AbstractRegisterLocation &unwind_regloc) |
| 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 uint64_t | GetStackFrameSize () |
| Public Member Functions inherited from lldb_private::PluginInterface | |
| 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 lldb::ABISP | CreateInstance (lldb::ProcessSP process_sp, const lldb_private::ArchSpec &arch) |
| static llvm::StringRef | GetPluginNameStatic () |
| Static Public Member Functions inherited from ABIAArch64 | |
| static void | Initialize () |
| static void | Terminate () |
| Static Public Member Functions inherited from lldb_private::MCBasedABI | |
| static void | MapRegisterName (std::string ®, llvm::StringRef from_prefix, llvm::StringRef to_prefix) |
| If the register name is of the form "<from_prefix>[<number>]" then change the name to "<to_prefix>[<number>]". | |
| 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 ABIAArch64 | |
| std::pair< uint32_t, uint32_t > | GetEHAndDWARFNums (llvm::StringRef name) override |
| Return eh_frame and dwarf numbers for the given register. | |
| std::string | GetMCName (std::string reg) override |
| For the given (capitalized) lldb register name, return the name of this register in the MCRegisterInfo struct. | |
| uint32_t | GetGenericNum (llvm::StringRef name) override |
| Return the generic number of the given register. | |
| void | AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > ®s) override |
| Protected Member Functions inherited from lldb_private::MCBasedABI | |
| 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, 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 ABISysV_arm64.h.
|
overridedefault |
References sp.
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 46 of file ABISysV_arm64.h.
|
inlineoverridevirtual |
|
static |
Definition at line 46 of file ABISysV_arm64.cpp.
References lldb_private::ArchSpec::GetTriple(), and lldb_private::ABI::MakeMCRegisterInfo().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Reimplemented from ABIAArch64.
Definition at line 798 of file ABISysV_arm64.cpp.
References LLDB_INVALID_ADDRESS_MASK, pac_sign_extension, and pc.
Referenced by FixCodeAddress(), and FixDataAddress().
|
overridevirtual |
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 ABIAArch64.
Definition at line 837 of file ABISysV_arm64.cpp.
References FixAddress(), lldb_private::ABI::GetProcessSP(), LLDB_INVALID_ADDRESS_MASK, pac_sign_extension, pc, and ReadLinuxProcessAddressMask().
|
overridevirtual |
Reimplemented from ABIAArch64.
Definition at line 858 of file ABISysV_arm64.cpp.
References FixAddress(), lldb_private::ABI::GetProcessSP(), LLDB_INVALID_ADDRESS_MASK, pac_sign_extension, pc, and ReadLinuxProcessAddressMask().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 190 of file ABISysV_arm64.cpp.
References lldb::eRegisterKindGeneric, error(), lldb_private::Process::GetAddressByteSize(), lldb_private::CompilerType::GetBitSize(), lldb_private::Value::GetCompilerType(), lldb_private::ExecutionContext::GetProcessRef(), lldb_private::RegisterContext::GetRegisterInfo(), 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_REGNUM_GENERIC_ARG1, lldb_private::RegisterContext::ReadRegister(), lldb_private::Process::ReadScalarIntegerFromMemory(), lldb_private::RegisterValue::SignExtend(), and sp.
|
overridevirtual |
Get the effective memory permissions that result when the permissions referred to by a protection key are applied to the original permissions.
This is intended for architectures that have some sort of permission overlay system. Where the protection key is used to look up a set of permissions that modifies the original permissions.
Reimplemented from lldb_private::ABI.
Definition at line 889 of file ABISysV_arm64.cpp.
References lldb_private::RegisterContext::GetRegisterInfoByName(), LLDB_INVALID_ADDRESS, and lldb_private::RegisterContext::ReadRegisterAsUnsigned().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 79 of file ABISysV_arm64.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 75 of file ABISysV_arm64.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ABI.
Definition at line 36 of file ABISysV_arm64.cpp.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 41 of file ABISysV_arm64.cpp.
|
overrideprotectedvirtual |
Implements lldb_private::ABI.
Definition at line 616 of file ABISysV_arm64.cpp.
References lldb_private::RegisterInfo::byte_size, lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, error(), lldb_private::Process::GetAddressByteSize(), lldb_private::RegisterValue::GetAsMemoryData(), lldb_private::Process::GetByteOrder(), lldb_private::CompilerType::GetByteSize(), lldb_private::RegisterValue::GetData(), lldb_private::DataExtractor::GetDouble(), lldb_private::DataExtractor::GetFloat(), lldb_private::DataExtractor::GetLongDouble(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ExecutionContext::GetProcessRef(), lldb_private::RegisterContext::GetRegisterInfo(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::Value::GetScalar(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::CompilerType::GetTypeInfo(), LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_ARG2, LoadValueFromConsecutiveGPRRegisters(), lldb_private::RegisterContext::ReadRegister(), lldb_private::Value::Scalar, lldb_private::Value::SetCompilerType(), lldb_private::Value::SetValueType(), and UINT32_MAX.
|
static |
Definition at line 879 of file ABISysV_arm64.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by ABIAArch64::Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 119 of file ABISysV_arm64.cpp.
References lldb_private::Status::AsCString(), lldb::eRegisterKindGeneric, lldb_private::Expressions, lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::ABI::GetProcessSP(), lldb_private::RegisterContext::GetRegisterInfo(), lldb_private::StreamString::GetString(), LLDB_LOGF, LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_PC, LLDB_REGNUM_GENERIC_RA, LLDB_REGNUM_GENERIC_SP, lldb_private::RegisterInfo::name, lldb_private::Stream::Printf(), PushToLinuxGuardedControlStack(), lldb_private::Stream::PutCString(), lldb_private::Log::PutString(), sp, and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 394 of file ABISysV_arm64.cpp.
References lldb_private::RegisterInfo::name.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 278 of file ABISysV_arm64.cpp.
References lldb_private::Status::AsCString(), lldb::eRegisterKindGeneric, error(), lldb_private::Status::Fail(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::DataExtractor::GetMaxU64(), lldb_private::RegisterContext::GetRegisterInfo(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::CompilerType::GetTypeInfo(), LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_ARG2, lldb_private::RegisterValue::SetValueFromData(), lldb_private::RegisterContext::WriteRegister(), and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
static |
Definition at line 884 of file ABISysV_arm64.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by ABIAArch64::Terminate().