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

#include <ABIMacOSX_i386.h>

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

Public Member Functions

 ~ABIMacOSX_i386 () 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 return_addr, 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
 
llvm::StringRef GetPluginName () override
 
- Public Member Functions inherited from ABIX86_i386
uint32_t GetGenericNum (llvm::StringRef name) override
 Return the generic number of the given register. More...
 
- 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 RegisterIsVolatile (const RegisterInfo *reg_info)=0
 
virtual bool GetFallbackRegisterLocation (const RegisterInfo *reg_info, UnwindPlan::Row::RegisterLocation &unwind_regloc)
 
llvm::MCRegisterInfo & GetMCRegisterInfo ()
 
virtual bool GetPointerReturnRegister (const char *&name)
 
virtual lldb::addr_t FixCodeAddress (lldb::addr_t pc)
 Some targets might use bits in a code address to indicate a mode switch. More...
 
virtual lldb::addr_t FixDataAddress (lldb::addr_t pc)
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (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 ABIX86
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

lldb::ValueObjectSP GetReturnValueObjectImpl (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const override
 
bool RegisterIsCalleeSaved (const lldb_private::RegisterInfo *reg_info)
 
std::string GetMCName (std::string name) override
 For the given (capitalized) lldb register name, return the name of this register in the MCRegisterInfo struct. More...
 
- Protected Member Functions inherited from ABIX86
void AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > &regs) override
 
- Protected Member Functions inherited from lldb_private::MCBasedABI
virtual std::pair< uint32_t, uint32_tGetEHAndDWARFNums (llvm::StringRef reg)
 Return eh_frame and dwarf numbers for the given register. More...
 
 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. 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 16 of file ABIMacOSX_i386.h.

Constructor & Destructor Documentation

◆ ~ABIMacOSX_i386()

ABIMacOSX_i386::~ABIMacOSX_i386 ( )
overridedefault

Member Function Documentation

◆ CallFrameAddressIsValid()

bool ABIMacOSX_i386::CallFrameAddressIsValid ( lldb::addr_t  cfa)
inlineoverridevirtual

Implements lldb_private::ABI.

Definition at line 54 of file ABIMacOSX_i386.h.

◆ CodeAddressIsValid()

bool ABIMacOSX_i386::CodeAddressIsValid ( lldb::addr_t  pc)
inlineoverridevirtual

Implements lldb_private::ABI.

Definition at line 63 of file ABIMacOSX_i386.h.

References pc, and UINT32_MAX.

◆ CreateDefaultUnwindPlan()

bool ABIMacOSX_i386::CreateDefaultUnwindPlan ( lldb_private::UnwindPlan unwind_plan)
overridevirtual

◆ CreateFunctionEntryUnwindPlan()

bool ABIMacOSX_i386::CreateFunctionEntryUnwindPlan ( lldb_private::UnwindPlan unwind_plan)
overridevirtual

◆ CreateInstance()

ABISP ABIMacOSX_i386::CreateInstance ( lldb::ProcessSP  process_sp,
const lldb_private::ArchSpec arch 
)
static

Definition at line 51 of file ABIMacOSX_i386.cpp.

References lldb_private::ArchSpec::GetTriple().

◆ GetArgumentValues()

bool ABIMacOSX_i386::GetArgumentValues ( lldb_private::Thread thread,
lldb_private::ValueList values 
) const
overridevirtual

◆ GetMCName()

std::string ABIMacOSX_i386::GetMCName ( std::string  reg)
inlineoverrideprotectedvirtual

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 89 of file ABIMacOSX_i386.h.

References lldb_private::MCBasedABI::MapRegisterName().

◆ GetPluginName()

llvm::StringRef ABIMacOSX_i386::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 80 of file ABIMacOSX_i386.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

static llvm::StringRef ABIMacOSX_i386::GetPluginNameStatic ( )
inlinestatic

Definition at line 78 of file ABIMacOSX_i386.h.

Referenced by GetPluginName().

◆ GetRedZoneSize()

size_t ABIMacOSX_i386::GetRedZoneSize ( ) const
overridevirtual

Implements lldb_private::ABI.

Definition at line 46 of file ABIMacOSX_i386.cpp.

◆ GetReturnValueObjectImpl()

ValueObjectSP ABIMacOSX_i386::GetReturnValueObjectImpl ( lldb_private::Thread thread,
lldb_private::CompilerType ast_type 
) const
overrideprotectedvirtual

◆ Initialize()

void ABIMacOSX_i386::Initialize ( )
static

Definition at line 455 of file ABIMacOSX_i386.cpp.

Referenced by ABIX86::Initialize().

◆ PrepareTrivialCall()

bool ABIMacOSX_i386::PrepareTrivialCall ( lldb_private::Thread thread,
lldb::addr_t  sp,
lldb::addr_t  func_addr,
lldb::addr_t  return_addr,
llvm::ArrayRef< lldb::addr_t args 
) const
overridevirtual

◆ RegisterIsCalleeSaved()

bool ABIMacOSX_i386::RegisterIsCalleeSaved ( const lldb_private::RegisterInfo *  reg_info)
protected

Definition at line 421 of file ABIMacOSX_i386.cpp.

◆ RegisterIsVolatile()

bool ABIMacOSX_i386::RegisterIsVolatile ( const lldb_private::RegisterInfo *  reg_info)
override

Definition at line 406 of file ABIMacOSX_i386.cpp.

◆ SetReturnValueObject()

Status ABIMacOSX_i386::SetReturnValueObject ( lldb::StackFrameSP &  frame_sp,
lldb::ValueObjectSP &  new_value 
)
overridevirtual

◆ Terminate()

void ABIMacOSX_i386::Terminate ( )
static

Definition at line 460 of file ABIMacOSX_i386.cpp.

Referenced by ABIX86::Terminate().


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