LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ABIAArch64 Class Reference

#include <ABIAArch64.h>

Inheritance diagram for ABIAArch64:
Inheritance graph
[legend]
Collaboration diagram for ABIAArch64:
Collaboration graph
[legend]

Public Member Functions

virtual lldb::addr_t FixCodeAddress (lldb::addr_t pc) override
 Some targets might use bits in a code address to indicate a mode switch. More...
 
virtual lldb::addr_t FixDataAddress (lldb::addr_t pc) 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
 
llvm::MCRegisterInfo & GetMCRegisterInfo ()
 
virtual bool GetPointerReturnRegister (const char *&name)
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
virtual llvm::StringRef GetPluginName ()=0
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
- Static Public Member Functions inherited from lldb_private::MCBasedABI
static void MapRegisterName (std::string &reg, 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>]". More...
 
- Static Public Member Functions inherited from lldb_private::ABI
static lldb::ABISP FindPlugin (lldb::ProcessSP process_sp, const ArchSpec &arch)
 

Protected Member Functions

virtual lldb::addr_t FixAddress (lldb::addr_t pc, lldb::addr_t mask)
 
std::pair< uint32_t, uint32_tGetEHAndDWARFNums (llvm::StringRef name) override
 Return eh_frame and dwarf numbers for the given register. More...
 
std::string GetMCName (std::string reg) override
 For the given (capitalized) lldb register name, return the name of this register in the MCRegisterInfo struct. More...
 
uint32_t GetGenericNum (llvm::StringRef name) override
 Return the generic number of the given register. More...
 
void AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > &regs) 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, 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. More...
 
 ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up)
 
virtual lldb::addr_t FixCodeAddress (lldb::addr_t pc, lldb::addr_t mask)
 

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. More...
 
- Protected Attributes inherited from lldb_private::ABI
lldb::ProcessWP m_process_wp
 
std::unique_ptr< llvm::MCRegisterInfo > m_mc_register_info_up
 

Detailed Description

Definition at line 14 of file ABIAArch64.h.

Member Function Documentation

◆ AugmentRegisterInfo()

void ABIAArch64::AugmentRegisterInfo ( std::vector< lldb_private::DynamicRegisterInfo::Register > &  regs)
overrideprotectedvirtual

◆ FixAddress()

virtual lldb::addr_t ABIAArch64::FixAddress ( lldb::addr_t  pc,
lldb::addr_t  mask 
)
inlineprotectedvirtual

Reimplemented in ABISysV_arm64, and ABIMacOSX_arm64.

Definition at line 23 of file ABIAArch64.h.

References pc.

Referenced by FixCodeAddress(), and FixDataAddress().

◆ FixCodeAddress()

lldb::addr_t ABIAArch64::FixCodeAddress ( lldb::addr_t  pc)
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 lldb_private::ABI.

Reimplemented in ABISysV_arm64.

Definition at line 30 of file ABIAArch64.cpp.

References FixAddress(), lldb_private::ABI::GetProcessSP(), and pc.

◆ FixDataAddress()

lldb::addr_t ABIAArch64::FixDataAddress ( lldb::addr_t  pc)
overridevirtual

Reimplemented from lldb_private::ABI.

Reimplemented in ABISysV_arm64.

Definition at line 36 of file ABIAArch64.cpp.

References FixAddress(), lldb_private::ABI::GetProcessSP(), and pc.

◆ GetEHAndDWARFNums()

std::pair< uint32_t, uint32_t > ABIAArch64::GetEHAndDWARFNums ( llvm::StringRef  reg)
overrideprotectedvirtual

Return eh_frame and dwarf numbers for the given register.

Reimplemented from lldb_private::MCBasedABI.

Definition at line 43 of file ABIAArch64.cpp.

References arm64_dwarf::cpsr, LLDB_INVALID_REGNUM, and arm64_dwarf::pc.

◆ GetGenericNum()

uint32_t ABIAArch64::GetGenericNum ( llvm::StringRef  reg)
overrideprotectedvirtual

◆ GetMCName()

std::string ABIAArch64::GetMCName ( std::string  reg)
overrideprotectedvirtual

For the given (capitalized) lldb register name, return the name of this register in the MCRegisterInfo struct.

Reimplemented from lldb_private::MCBasedABI.

Definition at line 51 of file ABIAArch64.cpp.

References lldb_private::MCBasedABI::MapRegisterName().

◆ Initialize()

void ABIAArch64::Initialize ( )
static

Definition at line 20 of file ABIAArch64.cpp.

References ABIMacOSX_arm64::Initialize(), and ABISysV_arm64::Initialize().

◆ Terminate()

void ABIAArch64::Terminate ( )
static

Definition at line 25 of file ABIAArch64.cpp.

References ABIMacOSX_arm64::Terminate(), and ABISysV_arm64::Terminate().


The documentation for this class was generated from the following files: