LLDB mainline
|
#include <ABISysV_arc.h>
Public Member Functions | |
~ABISysV_arc () 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 | PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::Type &prototype, llvm::ArrayRef< ABI::CallArgument > 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 |
lldb::ValueObjectSP | GetReturnValueObjectImpl (lldb_private::Thread &thread, lldb_private::CompilerType &type) const override |
lldb::ValueObjectSP | GetReturnValueObjectImpl (lldb_private::Thread &thread, llvm::Type &type) const 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 |
const lldb_private::RegisterInfo * | GetRegisterInfoArray (uint32_t &count) override |
llvm::StringRef | GetPluginName () override |
Public Member Functions inherited from lldb_private::RegInfoBasedABI | |
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 lldb_private::ABI | |
static lldb::ABISP | FindPlugin (lldb::ProcessSP process_sp, const ArchSpec &arch) |
Private Types | |
using | RegisterFileFlag = std::optional< bool > |
Private Member Functions | |
lldb::ValueObjectSP | GetReturnValueObjectSimple (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const |
bool | IsRegisterFileReduced (lldb_private::RegisterContext ®_ctx) const |
Private Attributes | |
RegisterFileFlag | m_is_reg_file_reduced |
Additional Inherited Members | |
Protected Member Functions inherited from lldb_private::RegInfoBasedABI | |
bool | GetRegisterInfoByName (llvm::StringRef name, RegisterInfo &info) |
virtual const RegisterInfo * | GetRegisterInfoArray (uint32_t &count)=0 |
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) | |
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 19 of file ABISysV_arc.h.
|
private |
Definition at line 100 of file ABISysV_arc.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 59 of file ABISysV_arc.h.
|
inlineoverridevirtual |
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 578 of file ABISysV_arc.cpp.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 558 of file ABISysV_arc.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), and lldb_private::UnwindPlan::SetSourceName().
|
static |
Definition at line 164 of file ABISysV_arc.cpp.
References lldb_private::ArchSpec::GetTriple(), and lldb_private::ABI::MakeMCRegisterInfo().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 307 of file ABISysV_arc.cpp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 89 of file ABISysV_arc.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 83 of file ABISysV_arc.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 144 of file ABISysV_arc.cpp.
|
overridevirtual |
Implements lldb_private::RegInfoBasedABI.
Definition at line 139 of file ABISysV_arc.cpp.
References lldb_private::RegisterInfo::data().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 501 of file ABISysV_arc.cpp.
References GetReturnValueObjectSimple().
|
overridevirtual |
Reimplemented from lldb_private::ABI.
Definition at line 512 of file ABISysV_arc.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, lldb_private::Thread::GetRegisterContext(), lldb_private::Value::GetScalar(), lldb_private::Thread::GetStackFrameAtIndex(), LLDB_REGNUM_GENERIC_ARG1, ReadRawValue(), SetSizedFloat(), SetSizedInteger(), and lldb_private::Value::SetValueType().
|
private |
Definition at line 447 of file ABISysV_arc.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, lldb_private::CompilerType::GetByteSize(), lldb_private::Thread::GetRegisterContext(), lldb_private::Value::GetScalar(), lldb_private::Thread::GetStackFrameAtIndex(), lldb_private::CompilerType::GetTypeInfo(), lldb_private::CompilerType::IsFloatingPointType(), LLDB_REGNUM_GENERIC_ARG1, ReadRawValue(), lldb_private::Value::SetCompilerType(), SetSizedFloat(), SetSizedInteger(), and lldb_private::Value::SetValueType().
Referenced by GetReturnValueObjectImpl().
|
static |
Definition at line 595 of file ABISysV_arc.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
private |
Definition at line 146 of file ABISysV_arc.cpp.
References lldb_private::RegisterContext::GetRegisterInfoByName(), m_is_reg_file_reduced, and lldb_private::RegisterContext::ReadRegisterAsUnsigned().
|
overridevirtual |
Implements lldb_private::ABI.
|
override |
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 582 of file ABISysV_arc.cpp.
References lldb::eRegisterKindDWARF, lldb_private::RegisterInfo::kinds, and lldb_private::RegisterInfo::name.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 311 of file ABISysV_arc.cpp.
References lldb_private::Status::AsCString(), lldb::eRegisterKindGeneric, lldb_private::Status::Fail(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::DataExtractor::GetData(), lldb_private::DataExtractor::GetMaxU64(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_ARG2, and reg_size.
|
static |
Definition at line 600 of file ABISysV_arc.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
mutableprivate |
Definition at line 101 of file ABISysV_arc.h.
Referenced by IsRegisterFileReduced().