LLDB mainline
|
#include <ABIMacOSX_i386.h>
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. | |
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::AbstractRegisterLocation &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 | FixCodeAddress (lldb::addr_t pc) |
Some targets might use bits in a code address to indicate a mode switch. | |
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 ABIX86 | |
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 |
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. | |
Protected Member Functions inherited from ABIX86 | |
void | AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > ®s) override |
Protected Member Functions inherited from lldb_private::MCBasedABI | |
virtual std::pair< uint32_t, uint32_t > | GetEHAndDWARFNums (llvm::StringRef reg) |
Return eh_frame and dwarf numbers for the given register. | |
virtual uint32_t | GetGenericNum (llvm::StringRef reg)=0 |
Return the generic number of the given register. | |
virtual std::string | GetMCName (std::string reg) |
For the given (capitalized) lldb register name, return the name of this register in the MCRegisterInfo struct. | |
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 16 of file ABIMacOSX_i386.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 54 of file ABIMacOSX_i386.h.
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 63 of file ABIMacOSX_i386.h.
References pc, and UINT32_MAX.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 381 of file ABIMacOSX_i386.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), dwarf_ebp, dwarf_eip, dwarf_esp, 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 359 of file ABIMacOSX_i386.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), dwarf_eip, dwarf_esp, lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), and lldb_private::UnwindPlan::SetSourceName().
|
static |
Definition at line 52 of file ABIMacOSX_i386.cpp.
References lldb_private::ArchSpec::GetTriple(), and lldb_private::ABI::MakeMCRegisterInfo().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 139 of file ABIMacOSX_i386.cpp.
References lldb_private::CompilerType::GetBitSize(), lldb_private::Value::GetCompilerType(), lldb_private::Thread::GetProcess(), lldb_private::Thread::GetRegisterContext(), lldb_private::Value::GetScalar(), lldb_private::ValueList::GetSize(), lldb_private::RegisterContext::GetSP(), lldb_private::ValueList::GetValueAtIndex(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), ReadIntegerArgument(), and sp.
|
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().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 80 of file ABIMacOSX_i386.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 78 of file ABIMacOSX_i386.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 47 of file ABIMacOSX_i386.cpp.
|
overrideprotectedvirtual |
Implements lldb_private::ABI.
Definition at line 259 of file ABIMacOSX_i386.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindLLDB, lldb_private::CompilerType::GetBitSize(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::Value::GetScalar(), lldb_private::Thread::GetStackFrameAtIndex(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), lldb_private::RegisterInfo::kinds, and lldb_private::Value::SetCompilerType().
|
static |
Definition at line 457 of file ABIMacOSX_i386.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by ABIX86::Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 62 of file ABIMacOSX_i386.cpp.
References lldb_private::RegisterInfo::byte_size, lldb_private::RegisterContext::ConvertRegisterKindToRegisterNumber(), lldb::eRegisterKindGeneric, error(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoByName(), LLDB_REGNUM_GENERIC_PC, LLDB_REGNUM_GENERIC_SP, lldb_private::RegisterValue::SetUInt32(), sp, lldb_private::RegisterContext::WriteRegisterFromUnsigned(), and lldb_private::RegisterContext::WriteRegisterValueToMemory().
|
protected |
Definition at line 423 of file ABIMacOSX_i386.cpp.
References lldb_private::RegisterInfo::name.
Referenced by RegisterIsVolatile().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 408 of file ABIMacOSX_i386.cpp.
References RegisterIsCalleeSaved().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 183 of file ABIMacOSX_i386.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::Fail(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::DataExtractor::GetMaxU32(), lldb_private::Thread::GetRegisterContext(), lldb_private::RegisterContext::GetRegisterInfoByName(), lldb_private::CompilerType::IsFloatingPointType(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), and lldb_private::RegisterContext::WriteRegisterFromUnsigned().
|
static |
Definition at line 462 of file ABIMacOSX_i386.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by ABIX86::Terminate().