Go to the documentation of this file.
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();
76 SBAddress::operator bool()
const {
79 return m_opaque_up !=
nullptr && m_opaque_up->IsValid();
111 TargetSP target_sp(target.
GetSP());
114 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
115 addr =
m_opaque_up->GetLoadAddress(target_sp.get());
195 m_opaque_up->Dump(&strm,
nullptr, Address::DumpStyleResolvedDescription,
196 Address::DumpStyleModuleWithFileAddress, 4);
216 SymbolContextItem scope =
static_cast<SymbolContextItem
>(resolve_scope);
264 if (
m_opaque_up->CalculateSymbolContextLineEntry(line_entry))
267 return sb_line_entry;
lldb_private::Stream & ref()
lldb::SBSymbolContext GetSymbolContext(uint32_t resolve_scope)
lldb::SBLineEntry GetLineEntry()
void SetLoadAddress(lldb::addr_t load_addr, lldb::SBTarget &target)
lldb::SBFunction GetFunction()
lldb::SBAddress ResolveLoadAddress(lldb::addr_t vm_addr)
Resolve a current load address into a section offset address.
void SetPtr(lldb_private::Block *lldb_object_ptr)
void SetAddress(lldb::SBSection section, lldb::addr_t offset)
lldb_private::SymbolContext & ref()
addr_t GetFileAddress() const
bool OffsetAddress(addr_t offset)
lldb::SBSection GetSection()
const lldb::SBAddress & operator=(const lldb::SBAddress &rhs)
void reset(lldb_private::Symbol *)
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
addr_t GetLoadAddress(const lldb::SBTarget &target) const
void SetSP(const ModuleSP &module_sp)
lldb::SBModule GetModule()
void SetSection(const lldb::SectionSP §ion_sp)
Set accessor for the section.
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
void reset(lldb_private::Function *lldb_object_ptr)
bool GetDescription(lldb::SBStream &description)
lldb_private::Address * operator->()
lldb::SBCompileUnit GetCompileUnit()
bool operator!=(const SBAddress &rhs) const
lldb::SectionSP GetSP() const
void reset(lldb_private::CompileUnit *lldb_object_ptr)
bool SetOffset(lldb::addr_t offset)
Set accessor for the offset.
#define LLDB_INVALID_ADDRESS
std::unique_ptr< lldb_private::Address > m_opaque_up
lldb_private::Address & ref()
A class that represents a running process on the host machine.
lldb::TargetSP GetSP() const
#define LLDB_INSTRUMENT_VA(...)
void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref)
lldb_private::Address * get()
lldb::SBSymbol GetSymbol()
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
void SetSP(const lldb::SectionSP §ion_sp)