45 return this->
operator bool();
47SBSymbol::operator
bool()
const {
56 const char *name =
nullptr;
66 const char *name =
nullptr;
68 name =
m_opaque_ptr->GetMangled().GetDisplayDemangledName().AsCString();
76 const char *name =
nullptr;
78 name =
m_opaque_ptr->GetMangled().GetMangledName().AsCString();
88 return m_opaque_ptr->GetMangled().GetBaseName().AsCString();
123 const char *flavor_string) {
129 std::unique_lock<std::recursive_mutex> lock;
131 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex());
136 const bool force_live_memory =
true;
138 module_sp->GetArchitecture(),
nullptr, flavor_string,
139 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(),
140 *target_sp, symbol_range, force_live_memory));
144 return sb_instructions;
167 if (range_size > 0) {
#define LLDB_INSTRUMENT_VA(...)
void SetAddress(lldb::SBSection section, lldb::addr_t offset)
void SetDisassembler(const lldb::DisassemblerSP &opaque_sp)
lldb_private::Stream & ref()
const char * GetBaseName() const
uint64_t GetValue()
Get the raw value of a symbol.
const char * GetDisplayName() const
const char * GetMangledName() const
static lldb::SymbolType GetTypeFromString(const char *str)
Get the symbol type from a string representation.
uint32_t GetPrologueByteSize()
void reset(lldb_private::Symbol *)
bool GetDescription(lldb::SBStream &description)
SBAddress GetStartAddress()
Get the start address of this symbol.
SBAddress GetEndAddress()
Get the end address of this symbol.
bool operator==(const lldb::SBSymbol &rhs) const
lldb_private::Symbol * m_opaque_ptr
bool IsDebug()
Returns true if the symbol is a debug symbol.
const lldb::SBSymbol & operator=(const lldb::SBSymbol &rhs)
const char * GetName() const
uint64_t GetSize()
Get the size of the symbol.
static const char * GetTypeAsString(lldb::SymbolType symbol_type)
Get the string representation of a symbol type.
void SetSymbol(lldb_private::Symbol *lldb_object_ptr)
lldb::SBInstructionList GetInstructions(lldb::SBTarget target)
bool operator!=(const lldb::SBSymbol &rhs) const
lldb_private::Symbol * get()
uint32_t GetID()
Get the ID of this symbol, usually the original symbol table index.
lldb::TargetSP GetSP() const
A section + offset based address range class.
A section + offset based address class.
bool Slide(int64_t offset)
lldb::ModuleSP GetModule() const
Get accessor for the module for this address.
static lldb::DisassemblerSP DisassembleRange(const ArchSpec &arch, const char *plugin_name, const char *flavor, const char *cpu, const char *features, Target &target, llvm::ArrayRef< AddressRange > disasm_ranges, bool force_live_memory=false)
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
const char * GetTypeAsString() const
static lldb::SymbolType GetTypeFromString(const char *str)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Target > TargetSP
std::shared_ptr< lldb_private::Module > ModuleSP