46 return this->
operator bool();
48SBSymbol::operator
bool()
const {
57 const char *name =
nullptr;
67 const char *name =
nullptr;
78 const char *name =
nullptr;
127 const char *flavor_string) {
134 std::unique_lock<TargetAPIMutex> guard;
137 guard = std::unique_lock<TargetAPIMutex>(api_lock);
142 const bool force_live_memory =
true;
144 module_sp->GetArchitecture(),
nullptr, flavor_string,
145 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(),
146 *target_sp, symbol_range, force_live_memory));
150 return sb_instructions;
173 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 IsDebug() const
Returns true if the symbol is a debug 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
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() const
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 * InternNonEmpty(llvm::StringRef str) const
Like Intern, but an empty string yields nullptr.
static StringPoolRef GetSystemPool()
The system pool. Only valid between Initialize and Terminate.
const char * GetTypeAsString() const
static lldb::SymbolType GetTypeFromString(const char *str)
A Lockable handle over a Target's API mutex, returned by Target::GetAPIMutex() and backing the public...
#define LLDB_INVALID_SYMBOL_ID
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