Skip to content

Commit

Permalink
[lldb] Add comments to describe m_memory_addr and IsInMemory
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D129319
  • Loading branch information
augusto2112 committed Jul 7, 2022
1 parent 63fac42 commit 5ade38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/include/lldb/Symbol/ObjectFile.h
Expand Up @@ -673,6 +673,7 @@ class ObjectFile : public std::enable_shared_from_this<ObjectFile>,
virtual size_t ReadSectionData(Section *section,
DataExtractor &section_data);

/// Returns true if the object file exists only in memory.
bool IsInMemory() const { return m_memory_addr != LLDB_INVALID_ADDRESS; }

// Strip linker annotations (such as @@VERSION) from symbol names.
Expand Down Expand Up @@ -736,6 +737,7 @@ class ObjectFile : public std::enable_shared_from_this<ObjectFile>,
DataExtractor
m_data; ///< The data for this object file so things can be parsed lazily.
lldb::ProcessWP m_process_wp;
/// Set if the object file only exists in memory.
const lldb::addr_t m_memory_addr;
std::unique_ptr<lldb_private::SectionList> m_sections_up;
std::unique_ptr<lldb_private::Symtab> m_symtab_up;
Expand Down

0 comments on commit 5ade38c

Please sign in to comment.