LLDB mainline
|
#include <ABISysV_riscv.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 lldb_private::ABI | |
static lldb::ABISP | FindPlugin (lldb::ProcessSP process_sp, const ArchSpec &arch) |
Protected Member Functions | |
void | AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > ®s) override |
bool | RegisterIsCalleeSaved (const lldb_private::RegisterInfo *reg_info) |
Protected Member Functions inherited from lldb_private::RegInfoBasedABI | |
bool | GetRegisterInfoByName (llvm::StringRef name, RegisterInfo &info) |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) | |
Protected Member Functions inherited from lldb_private::ABI | |
lldb::ProcessSP | GetProcessSP () const |
Request to get a Process shared pointer. | |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) |
Private Member Functions | |
lldb::ValueObjectSP | GetReturnValueObjectSimple (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const |
Private Attributes | |
bool | m_is_rv64 |
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 21 of file ABISysV_riscv.h.
|
overridedefault |
|
overrideprotectedvirtual |
Implements lldb_private::ABI.
Definition at line 832 of file ABISysV_riscv.cpp.
References lldb_private::RegInfoBasedABI::AugmentRegisterInfo(), and GetGenericNum().
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 60 of file ABISysV_riscv.h.
References lldb_private::ArchSpec::eRISCV_rve, lldb_private::ArchSpec::GetFlags(), lldb_private::ABI::GetProcessSP(), and lldb_private::Flags::Test().
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 71 of file ABISysV_riscv.h.
References lldb_private::ArchSpec::eRISCV_rvc, lldb_private::ArchSpec::GetFlags(), lldb_private::ArchSpec::GetMachine(), lldb_private::ABI::GetProcessSP(), pc, lldb_private::Flags::Test(), and UINT32_MAX.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 742 of file ABISysV_riscv.cpp.
References lldb_private::eLazyBoolNo, lldb::eRegisterKindGeneric, lldb_private::UnwindPlan::Row::GetCFAValue(), LLDB_REGNUM_GENERIC_FP, LLDB_REGNUM_GENERIC_PC, m_is_rv64, reg_size, lldb_private::UnwindPlan::Row::FAValue::SetIsRegisterPlusOffset(), and lldb_private::UnwindPlan::Row::SetRegisterLocationToAtCFAPlusOffset().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 722 of file ABISysV_riscv.cpp.
References riscv_dwarf::dwarf_gpr_pc, riscv_dwarf::dwarf_gpr_ra, riscv_dwarf::dwarf_gpr_sp, lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::Row::GetCFAValue(), lldb_private::UnwindPlan::Row::FAValue::SetIsRegisterPlusOffset(), and lldb_private::UnwindPlan::Row::SetRegisterLocationToRegister().
|
static |
Definition at line 140 of file ABISysV_riscv.cpp.
References lldb_private::ArchSpec::GetTriple(), lldb_private::ABI::MakeMCRegisterInfo(), and SetIsRV64().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 362 of file ABISysV_riscv.cpp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 110 of file ABISysV_riscv.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 104 of file ABISysV_riscv.h.
Referenced by GetPluginName(), and Initialize().
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 25 of file ABISysV_riscv.h.
|
overridevirtual |
Implements lldb_private::RegInfoBasedABI.
Definition at line 130 of file ABISysV_riscv.cpp.
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 711 of file ABISysV_riscv.cpp.
References GetReturnValueObjectSimple().
|
overridevirtual |
Reimplemented from lldb_private::ABI.
Definition at line 663 of file ABISysV_riscv.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, lldb_private::ArchSpec::eRISCV_float_abi_mask, lldb_private::ArchSpec::GetFlags(), lldb_private::ArchSpec::GetMachine(), lldb_private::Value::GetScalar(), GetValObjFromFPRegs(), GetValObjFromIntRegs(), LLDB_REGNUM_GENERIC_ARG1, lldb_private::Value::Scalar, and lldb_private::Value::SetValueType().
|
private |
Definition at line 609 of file ABISysV_riscv.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, lldb_private::ArchSpec::eRISCV_float_abi_mask, lldb_private::CompilerType::GetByteSize(), lldb_private::ArchSpec::GetFlags(), lldb_private::ArchSpec::GetMachine(), lldb_private::Value::GetScalar(), lldb_private::CompilerType::GetTypeInfo(), GetValObjFromFPRegs(), GetValObjFromIntRegs(), lldb_private::CompilerType::IsFloatingPointType(), LLDB_REGNUM_GENERIC_ARG1, lldb_private::Value::Scalar, lldb_private::Value::SetCompilerType(), and lldb_private::Value::SetValueType().
Referenced by GetReturnValueObjectImpl().
|
static |
Definition at line 806 of file ABISysV_riscv.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
overridevirtual |
Implements lldb_private::ABI.
References sp.
|
override |
References sp.
|
protected |
Definition at line 772 of file ABISysV_riscv.cpp.
References lldb_private::ArchSpec::eRISCV_float_abi_mask, lldb_private::ArchSpec::GetFlags(), lldb_private::ABI::GetProcessSP(), and lldb_private::RegisterInfo::name.
Referenced by RegisterIsVolatile().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 768 of file ABISysV_riscv.cpp.
References RegisterIsCalleeSaved().
|
inline |
Definition at line 69 of file ABISysV_riscv.h.
References m_is_rv64.
Referenced by CreateInstance().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 367 of file ABISysV_riscv.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, m_is_rv64, lldb_private::RegisterInfo::name, and reg_size.
|
static |
Definition at line 811 of file ABISysV_riscv.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
private |
Definition at line 125 of file ABISysV_riscv.h.
Referenced by CreateDefaultUnwindPlan(), SetIsRV64(), and SetReturnValueObject().