29 : m_opaque_up(std::make_unique<
Address>(address)) {}
38 : m_opaque_up(new
Address(section.GetSP(), offset)) {
62 return lhs.
ref() == rhs.
ref();
69 return !(*
this == rhs);
74 return this->
operator bool();
76SBAddress::operator bool()
const {
79 return m_opaque_up !=
nullptr && m_opaque_up->IsValid();
114 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
115 addr =
m_opaque_up->GetLoadAddress(target_sp.get());
216 SymbolContextItem scope =
static_cast<SymbolContextItem
>(resolve_scope);
264 if (
m_opaque_up->CalculateSymbolContextLineEntry(line_entry))
267 return sb_line_entry;
#define LLDB_INSTRUMENT_VA(...)
lldb_private::Address * get()
lldb::SBSection GetSection()
bool operator!=(const SBAddress &rhs) const
lldb::SBSymbol GetSymbol()
lldb::SBLineEntry GetLineEntry()
bool OffsetAddress(addr_t offset)
addr_t GetLoadAddress(const lldb::SBTarget &target) const
lldb_private::Address & ref()
std::unique_ptr< lldb_private::Address > m_opaque_up
bool GetDescription(lldb::SBStream &description)
void SetLoadAddress(lldb::addr_t load_addr, lldb::SBTarget &target)
addr_t GetFileAddress() const
lldb::SBSymbolContext GetSymbolContext(uint32_t resolve_scope)
lldb::SBModule GetModule()
lldb::SBFunction GetFunction()
lldb_private::Address * operator->()
const lldb::SBAddress & operator=(const lldb::SBAddress &rhs)
void SetAddress(lldb::SBSection section, lldb::addr_t offset)
lldb::SBCompileUnit GetCompileUnit()
void SetPtr(lldb_private::Block *lldb_object_ptr)
void reset(lldb_private::CompileUnit *lldb_object_ptr)
void reset(lldb_private::Function *lldb_object_ptr)
void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref)
void SetSP(const ModuleSP &module_sp)
lldb::SectionSP GetSP() const
void SetSP(const lldb::SectionSP §ion_sp)
lldb_private::Stream & ref()
lldb_private::SymbolContext & ref()
void reset(lldb_private::Symbol *)
lldb::SBAddress ResolveLoadAddress(lldb::addr_t vm_addr)
Resolve a current load address into a section offset address.
lldb::TargetSP GetSP() const
A section + offset based address class.
void SetSection(const lldb::SectionSP §ion_sp)
Set accessor for the section.
@ DumpStyleModuleWithFileAddress
Display as the file address with the module name prepended (if any).
@ DumpStyleResolvedDescription
Display the details about what an address resolves to.
bool SetOffset(lldb::addr_t offset)
Set accessor for the offset.
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
std::shared_ptr< lldb_private::Target > TargetSP
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
A line table entry class.