LLDB mainline
lldb_private::ModuleListProperties Class Reference

#include <ModuleList.h>

Inheritance diagram for lldb_private::ModuleListProperties:
[legend]

Public Member Functions

 ModuleListProperties ()
FileSpec GetClangModulesCachePath () const
bool SetClangModulesCachePath (const FileSpec &path)
bool GetEnableExternalLookup () const
bool SetEnableExternalLookup (bool new_value)
bool GetEnableTypeSystemClike () const
bool SetEnableTypeSystemClike (bool new_value)
lldb::SymbolSharedCacheUse GetSharedCacheBinaryLoading () const
bool GetLLDBIndexCacheForceDisable () const
bool GetLLDBIndexCacheTypeSymtab () const
bool GetLLDBIndexCacheTypeDwarfIndex () const
bool GetLLDBIndexCacheTypeMemoryModuleSymtab () const
bool GetLLDBIndexCacheTypeMemoryModuleHeaderBytes () const
uint64_t GetLLDBIndexCacheMaxByteSize ()
uint64_t GetLLDBIndexCacheMaxPercent ()
uint64_t GetLLDBIndexCacheExpirationDays ()
FileSpec GetLLDBIndexCachePath () const
bool GetLoadSymbolOnDemand () const
uint64_t GetDemangledNameInfoCacheSize () const
lldb::SymbolDownload GetSymbolAutoDownload () const
PathMappingList GetSymlinkMappings () const
Public Member Functions inherited from lldb_private::Properties
 Properties ()
 Properties (const lldb::OptionValuePropertiesSP &collection_sp)
virtual ~Properties ()
lldb::OptionValuePropertiesSP GetValueProperties () const
virtual lldb::OptionValueSP GetPropertyValue (const ExecutionContext *exe_ctx, llvm::StringRef property_path, Status &error) const
virtual Status SetPropertyValue (const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value)
virtual Status DumpPropertyValue (const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllPropertyValues (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllDescriptions (CommandInterpreter &interpreter, Stream &strm, bool include_deprecated) const
void Apropos (llvm::StringRef keyword, std::vector< const Property * > &matching_properties, std::vector< const Property * > &matching_property_paths) const
std::optional< std::string > GetDeprecationWarning (llvm::StringRef property_path) const
 The warning to show when the setting at property_path is changed, or std::nullopt if that setting isn't deprecated.
template<typename T>
T GetPropertyAtIndexAs (uint32_t idx, T default_value, const ExecutionContext *exe_ctx=nullptr) const
template<typename T, typename U = typename std::remove_pointer<T>::type, std::enable_if_t< std::is_pointer_v< T >, bool > = true>
const U * GetPropertyAtIndexAs (uint32_t idx, const ExecutionContext *exe_ctx=nullptr) const
template<typename T>
bool SetPropertyAtIndex (uint32_t idx, T t, const ExecutionContext *exe_ctx=nullptr) const

Private Member Functions

void UpdateSymlinkMappings ()
void ForwardDeprecatedIndexCacheSettings ()
 Make the deprecated "symbols.*lldb-index-cache*" settings set their replacements in "symbols.lldb-index-cache".

Private Attributes

llvm::sys::RWMutex m_symlink_paths_mutex
PathMappingList m_symlink_paths
lldb::OptionValuePropertiesSP m_index_cache_sp
 The "symbols.lldb-index-cache" settings.
lldb::OptionValuePropertiesSP m_index_cache_type_sp
 The "symbols.lldb-index-cache.type" settings.
lldb::OptionValuePropertiesSP m_experimental_properties_sp

Additional Inherited Members

Static Public Member Functions inherited from lldb_private::Properties
static llvm::StringRef GetExperimentalSettingsName ()
static bool IsSettingExperimental (llvm::StringRef setting)
Protected Attributes inherited from lldb_private::Properties
lldb::OptionValuePropertiesSP m_collection_sp

Detailed Description

Definition at line 93 of file ModuleList.h.

Constructor & Destructor Documentation

◆ ModuleListProperties()

Member Function Documentation

◆ ForwardDeprecatedIndexCacheSettings()

void ModuleListProperties::ForwardDeprecatedIndexCacheSettings ( )
private

Make the deprecated "symbols.*lldb-index-cache*" settings set their replacements in "symbols.lldb-index-cache".

Definition at line 185 of file ModuleList.cpp.

References lldb_private::Properties::m_collection_sp, m_index_cache_sp, and m_index_cache_type_sp.

Referenced by ModuleListProperties().

◆ GetClangModulesCachePath()

FileSpec ModuleListProperties::GetClangModulesCachePath ( ) const

Definition at line 264 of file ModuleList.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ GetDemangledNameInfoCacheSize()

uint64_t ModuleListProperties::GetDemangledNameInfoCacheSize ( ) const

Definition at line 354 of file ModuleList.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ GetEnableExternalLookup()

bool ModuleListProperties::GetEnableExternalLookup ( ) const

Definition at line 225 of file ModuleList.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ GetEnableTypeSystemClike()

bool ModuleListProperties::GetEnableTypeSystemClike ( ) const

Definition at line 235 of file ModuleList.cpp.

References m_experimental_properties_sp.

◆ GetLLDBIndexCacheExpirationDays()

uint64_t ModuleListProperties::GetLLDBIndexCacheExpirationDays ( )

Definition at line 323 of file ModuleList.cpp.

References m_index_cache_sp.

Referenced by lldb_private::DataFileCache::GetLLDBIndexCachePolicy().

◆ GetLLDBIndexCacheForceDisable()

bool ModuleListProperties::GetLLDBIndexCacheForceDisable ( ) const

Definition at line 280 of file ModuleList.cpp.

References m_index_cache_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLLDBIndexCacheMaxByteSize()

uint64_t ModuleListProperties::GetLLDBIndexCacheMaxByteSize ( )

Definition at line 311 of file ModuleList.cpp.

References m_index_cache_sp.

Referenced by lldb_private::DataFileCache::GetLLDBIndexCachePolicy().

◆ GetLLDBIndexCacheMaxPercent()

uint64_t ModuleListProperties::GetLLDBIndexCacheMaxPercent ( )

Definition at line 317 of file ModuleList.cpp.

References m_index_cache_sp.

Referenced by lldb_private::DataFileCache::GetLLDBIndexCachePolicy().

◆ GetLLDBIndexCachePath()

FileSpec ModuleListProperties::GetLLDBIndexCachePath ( ) const

Definition at line 274 of file ModuleList.cpp.

References m_index_cache_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLLDBIndexCacheTypeDwarfIndex()

bool ModuleListProperties::GetLLDBIndexCacheTypeDwarfIndex ( ) const

Definition at line 292 of file ModuleList.cpp.

References m_index_cache_type_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLLDBIndexCacheTypeMemoryModuleHeaderBytes()

bool ModuleListProperties::GetLLDBIndexCacheTypeMemoryModuleHeaderBytes ( ) const

Definition at line 304 of file ModuleList.cpp.

References m_index_cache_type_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLLDBIndexCacheTypeMemoryModuleSymtab()

bool ModuleListProperties::GetLLDBIndexCacheTypeMemoryModuleSymtab ( ) const

Definition at line 298 of file ModuleList.cpp.

References m_index_cache_type_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLLDBIndexCacheTypeSymtab()

bool ModuleListProperties::GetLLDBIndexCacheTypeSymtab ( ) const

Definition at line 286 of file ModuleList.cpp.

References m_index_cache_type_sp.

Referenced by lldb_private::Module::GetIndexCache().

◆ GetLoadSymbolOnDemand()

bool ModuleListProperties::GetLoadSymbolOnDemand ( ) const

Definition at line 348 of file ModuleList.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ GetSharedCacheBinaryLoading()

◆ GetSymbolAutoDownload()

SymbolDownload ModuleListProperties::GetSymbolAutoDownload ( ) const

◆ GetSymlinkMappings()

PathMappingList ModuleListProperties::GetSymlinkMappings ( ) const

Definition at line 343 of file ModuleList.cpp.

References m_symlink_paths, and m_symlink_paths_mutex.

◆ SetClangModulesCachePath()

bool ModuleListProperties::SetClangModulesCachePath ( const FileSpec & path)

◆ SetEnableExternalLookup()

bool ModuleListProperties::SetEnableExternalLookup ( bool new_value)

Definition at line 231 of file ModuleList.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

◆ SetEnableTypeSystemClike()

bool ModuleListProperties::SetEnableTypeSystemClike ( bool new_value)

Definition at line 241 of file ModuleList.cpp.

References m_experimental_properties_sp.

◆ UpdateSymlinkMappings()

Member Data Documentation

◆ m_experimental_properties_sp

lldb::OptionValuePropertiesSP lldb_private::ModuleListProperties::m_experimental_properties_sp
private

◆ m_index_cache_sp

lldb::OptionValuePropertiesSP lldb_private::ModuleListProperties::m_index_cache_sp
private

◆ m_index_cache_type_sp

lldb::OptionValuePropertiesSP lldb_private::ModuleListProperties::m_index_cache_type_sp
private

◆ m_symlink_paths

PathMappingList lldb_private::ModuleListProperties::m_symlink_paths
private

Definition at line 95 of file ModuleList.h.

Referenced by GetSymlinkMappings(), and UpdateSymlinkMappings().

◆ m_symlink_paths_mutex

llvm::sys::RWMutex lldb_private::ModuleListProperties::m_symlink_paths_mutex
mutableprivate

Definition at line 94 of file ModuleList.h.

Referenced by GetSymlinkMappings(), and UpdateSymlinkMappings().


The documentation for this class was generated from the following files: