Go to the documentation of this file.
9 #ifndef LLDB_SYMBOL_SYMBOL_H
10 #define LLDB_SYMBOL_SYMBOL_H
28 bool external,
bool is_debug,
bool is_trampoline,
bool is_artificial,
31 bool contains_linker_annotations,
uint32_t flags);
34 bool external,
bool is_debug,
bool is_trampoline,
bool is_artificial,
36 bool contains_linker_annotations,
uint32_t flags);
47 Mangled::NamePreference name_preference =
48 Mangled::ePreferDemangled)
const;
237 bool prefer_file_cache);
240 bool prefer_file_cache,
Stream &strm);
245 return "___lldb_unnamed_symbol";
335 #endif // LLDB_SYMBOL_SYMBOL_H
Address & GetBaseAddress()
Get accessor for the base address of the range.
void Encode(DataEncoder &encoder, ConstStringTable &strtab) const
Encode this object into a data encoder object.
Many cache files require string tables to store data efficiently.
bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, const SectionList *section_list, const StringTableReader &strtab)
Decode a serialized version of this object from data.
uint32_t GetPrologueByteSize()
static llvm::StringRef GetSyntheticSymbolPrefix()
void SetSizeIsSynthesized(bool b)
void GetDescription(Stream *s, lldb::DescriptionLevel level, Target *target) const
bool ValueIsAddress() const
void DumpSymbolContext(Stream *s) override
Dump the object's symbol context to the stream s.
const Mangled & GetMangled() const
Many cache files require string tables to store data efficiently.
void SetIsSynthetic(bool b)
LanguageType
Programming language type.
void SetType(lldb::SymbolType type)
lldb::ModuleSP CalculateSymbolContextModule() override
ConstString GetReExportedSymbolName() const
Symbol * CalculateSymbolContextSymbol() override
bool IsSyntheticWithAutoGeneratedName() const
lldb::addr_t ResolveCallableAddress(Target &target) const
uint64_t GetRawValue() const
Get the raw value of the symbol from the symbol table.
uint32_t GetFlags() const
uint16_t m_type_data_resolved
bool ContainsFileAddress(lldb::addr_t file_addr) const
void Dump(Stream *s, Target *target, uint32_t index, Mangled::NamePreference name_preference=Mangled::ePreferDemangled) const
void SetByteSize(lldb::addr_t size)
bool GetSizeIsSibling() const
bool SetReExportedSymbolSharedLibrary(const FileSpec &fspec)
uint16_t m_size_is_sibling
uint16_t m_demangled_is_synthesized
void CalculateSymbolContext(SymbolContext *sc) override
Reconstruct the object's symbol context into sc.
lldb::addr_t GetFileAddress() const
Get the file address.
Address & GetAddressRef()
lldb::DisassemblerSP GetInstructions(const ExecutionContext &exe_ctx, const char *flavor, bool prefer_file_cache)
const Symbol & operator=(const Symbol &rhs)
const Address & GetAddressRef() const
uint16_t m_contains_linker_annotations
bool Compare(ConstString name, lldb::SymbolType type) const
bool ContainsLinkerAnnotations() const
bool GetSizeIsSynthesized() const
const char * GetTypeAsString() const
uint64_t GetIntegerValue(uint64_t fail_value=0) const
ConstString GetName() const
void SetFlags(uint32_t flags)
bool GetByteSizeIsValid() const
bool GetDemangledNameIsSynthesized() const
bool GetDisassembly(const ExecutionContext &exe_ctx, const char *flavor, bool prefer_file_cache, Stream &strm)
FileSpec GetReExportedSymbolSharedLibrary() const
lldb::LanguageType GetLanguage() const
lldb::addr_t GetByteSize() const
void SetContainsLinkerAnnotations(bool b)
void SynthesizeNameIfNeeded() const
lldb::addr_t GetFileAddress() const
void SetByteSize(lldb::addr_t byte_size)
Set accessor for the byte size of this range.
AddressRange m_addr_range
A class that represents a running process on the host machine.
bool operator==(const Symbol &rhs) const
void SetSizeIsSibling(bool b)
bool IsTrampoline() const
lldb::addr_t GetOffset() const
Get the section relative offset value.
ConstString GetNameNoArguments() const
void SetReExportedSymbolName(ConstString name)
lldb::addr_t GetLoadAddress(Target *target) const
ConstString GetDisplayName() const
lldb::SymbolType GetType() const
uint16_t m_size_is_synthesized
Symbol * ResolveReExportedSymbol(Target &target) const
void SetDemangledNameIsSynthesized(bool b)
Symbol * ResolveReExportedSymbolInModuleSpec(Target &target, ConstString &reexport_name, lldb_private::ModuleSpec &module_spec, lldb_private::ModuleList &seen_modules) const
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
uint32_t GetSiblingIndex() const
Address GetAddress() const