LLDB mainline
|
#include <ABIMacOSX_arm64.h>
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 | |
virtual lldb::addr_t | FixAddress (lldb::addr_t pc, lldb::addr_t mask) |
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 16 of file ABIMacOSX_arm64.h.
|
overridedefault |
References sp.
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 43 of file ABIMacOSX_arm64.h.
|
inlineoverridevirtual |
|
static |
Definition at line 42 of file ABIMacOSX_arm64.cpp.
References lldb_private::ArchSpec::GetTriple(), and lldb_private::ABI::MakeMCRegisterInfo().
Referenced by Initialize(), and Terminate().
|
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 785 of file ABIMacOSX_arm64.cpp.
References DoFixAddr(), lldb_private::ABI::GetProcessSP(), and pc.
|
overridevirtual |
Reimplemented from ABIAArch64.
Definition at line 790 of file ABIMacOSX_arm64.cpp.
References DoFixAddr(), and lldb_private::ABI::GetProcessSP().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 118 of file ABIMacOSX_arm64.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::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 75 of file ABIMacOSX_arm64.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 73 of file ABIMacOSX_arm64.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 37 of file ABIMacOSX_arm64.cpp.
|
overrideprotectedvirtual |
Implements lldb_private::ABI.
Definition at line 577 of file ABIMacOSX_arm64.cpp.
References lldb_private::RegisterInfo::byte_size, lldb_private::ValueObjectConstResult::Create(), 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::GetRegisterInfoByName(), lldb_private::Value::GetScalar(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::CompilerType::GetTypeInfo(), LoadValueFromConsecutiveGPRRegisters(), lldb_private::RegisterContext::ReadRegister(), lldb_private::Value::Scalar, lldb_private::Value::SetCompilerType(), lldb_private::Value::SetValueType(), and UINT32_MAX.
|
static |
Definition at line 795 of file ABIMacOSX_arm64.cpp.
References CreateInstance(), GetPluginNameStatic(), pluginDesc, and lldb_private::PluginManager::RegisterPlugin().
Referenced by ABIAArch64::Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 57 of file ABIMacOSX_arm64.cpp.
References lldb_private::RegisterContext::ConvertRegisterKindToRegisterNumber(), lldb::eRegisterKindGeneric, lldb_private::Expressions, lldb_private::GetLog(), lldb_private::RegisterContext::GetRegisterInfo(), lldb_private::RegisterContext::GetRegisterInfoAtIndex(), 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(), lldb_private::Stream::PutCString(), lldb_private::Log::PutString(), sp, and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 354 of file ABIMacOSX_arm64.cpp.
References lldb_private::RegisterInfo::name.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 237 of file ABIMacOSX_arm64.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::Fail(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::DataExtractor::GetMaxU64(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::CompilerType::GetTypeInfo(), lldb_private::RegisterValue::SetValueFromData(), lldb_private::RegisterContext::WriteRegister(), and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
static |
Definition at line 800 of file ABIMacOSX_arm64.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by ABIAArch64::Terminate().