LLDB mainline
|
#include <SaveCoreOptions.h>
Private Member Functions | |
void | ClearProcessSpecificData () |
Private Attributes | |
std::optional< std::string > | m_plugin_name |
std::optional< lldb_private::FileSpec > | m_file |
std::optional< lldb::SaveCoreStyle > | m_style |
lldb::ProcessSP | m_process_sp |
std::unordered_set< lldb::tid_t > | m_threads_to_save |
MemoryRanges | m_regions_to_save |
Definition at line 25 of file SaveCoreOptions.h.
|
default |
|
default |
void SaveCoreOptions::AddMemoryRegionToSave | ( | const lldb_private::MemoryRegionInfo & | region | ) |
Definition at line 119 of file SaveCoreOptions.cpp.
References lldb_private::MemoryRegionInfo::GetRange(), and m_regions_to_save.
Status SaveCoreOptions::AddThread | ( | lldb::ThreadSP | thread_sp | ) |
Definition at line 83 of file SaveCoreOptions.cpp.
References error(), lldb_private::Status::FromErrorString(), m_process_sp, and m_threads_to_save.
void SaveCoreOptions::Clear | ( | ) |
Definition at line 207 of file SaveCoreOptions.cpp.
References m_file, m_plugin_name, m_process_sp, m_regions_to_save, m_style, and m_threads_to_save.
|
private |
Definition at line 201 of file SaveCoreOptions.cpp.
References m_threads_to_save.
Referenced by SetProcess().
Status SaveCoreOptions::EnsureValidConfiguration | ( | ) | const |
Definition at line 127 of file SaveCoreOptions.cpp.
References error(), lldb::eSaveCoreFull, GetStyle(), m_process_sp, m_threads_to_save, and lldb_private::Status.
Referenced by GetCurrentSizeInBytes(), GetMemoryRegionsToSave(), and lldb_private::PluginManager::SaveCore().
const MemoryRanges & SaveCoreOptions::GetCoreFileMemoryRanges | ( | ) | const |
Definition at line 124 of file SaveCoreOptions.cpp.
References m_regions_to_save.
Referenced by GetUserSpecifiedCoreFileSaveRanges().
llvm::Expected< uint64_t > SaveCoreOptions::GetCurrentSizeInBytes | ( | ) |
Definition at line 174 of file SaveCoreOptions.cpp.
References EnsureValidConfiguration(), error(), lldb_private::Status::FromErrorString(), GetMemoryRegionsToSave(), m_process_sp, and lldb_private::Status::takeError().
llvm::Expected< lldb_private::CoreFileMemoryRanges > SaveCoreOptions::GetMemoryRegionsToSave | ( | ) |
Definition at line 157 of file SaveCoreOptions.cpp.
References EnsureValidConfiguration(), error(), lldb_private::Status::FromErrorString(), m_process_sp, and lldb_private::Status::takeError().
Referenced by GetCurrentSizeInBytes().
const std::optional< lldb_private::FileSpec > SaveCoreOptions::GetOutputFile | ( | ) | const |
Definition at line 57 of file SaveCoreOptions.cpp.
References m_file.
Referenced by lldb_private::PluginManager::SaveCore(), ObjectFileMachO::SaveCore(), ObjectFileMinidump::SaveCore(), ObjectFilePECOFF::SaveCore(), and lldb_private::SaveMiniDump().
std::optional< std::string > SaveCoreOptions::GetPluginName | ( | ) | const |
Definition at line 48 of file SaveCoreOptions.cpp.
References m_plugin_name.
Referenced by lldb_private::PluginManager::SaveCore().
|
inline |
Definition at line 40 of file SaveCoreOptions.h.
References m_process_sp.
Referenced by lldb_private::PluginManager::SaveCore().
lldb::SaveCoreStyle SaveCoreOptions::GetStyle | ( | ) | const |
Definition at line 52 of file SaveCoreOptions.cpp.
References lldb::eSaveCoreUnspecified, and m_style.
Referenced by lldb_private::Process::CalculateCoreFileSaveRanges(), CreateAllImageInfosPayload(), EnsureValidConfiguration(), ObjectFileMachO::SaveCore(), and ObjectFileMinidump::SaveCore().
lldb_private::ThreadCollection::collection SaveCoreOptions::GetThreadsToSave | ( | ) | const |
Definition at line 143 of file SaveCoreOptions.cpp.
References lldb_private::ThreadList::FindThreadByID(), m_process_sp, and m_threads_to_save.
bool SaveCoreOptions::HasSpecifiedThreads | ( | ) | const |
Definition at line 115 of file SaveCoreOptions.cpp.
References m_threads_to_save.
Referenced by lldb_private::Process::CalculateCoreFileSaveRanges().
bool SaveCoreOptions::RemoveThread | ( | lldb::ThreadSP | thread_sp | ) |
Definition at line 104 of file SaveCoreOptions.cpp.
References m_threads_to_save.
void SaveCoreOptions::SetOutputFile | ( | lldb_private::FileSpec | file | ) |
Definition at line 46 of file SaveCoreOptions.cpp.
References m_file.
Status SaveCoreOptions::SetPluginName | ( | const char * | name | ) |
Definition at line 17 of file SaveCoreOptions.cpp.
References error(), lldb_private::PluginManager::GetSaveCorePluginNames(), lldb_private::StreamString::GetString(), m_plugin_name, lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), and lldb_private::Status.
Status SaveCoreOptions::SetProcess | ( | lldb::ProcessSP | process_sp | ) |
Definition at line 61 of file SaveCoreOptions.cpp.
References ClearProcessSpecificData(), error(), lldb_private::Status::FromErrorString(), and m_process_sp.
void SaveCoreOptions::SetStyle | ( | lldb::SaveCoreStyle | style | ) |
Definition at line 44 of file SaveCoreOptions.cpp.
References m_style.
Referenced by ObjectFileMachO::SaveCore(), and ObjectFileMinidump::SaveCore().
bool SaveCoreOptions::ShouldThreadBeSaved | ( | lldb::tid_t | tid | ) | const |
Definition at line 108 of file SaveCoreOptions.cpp.
References m_threads_to_save.
Referenced by lldb_private::Process::CalculateCoreFileThreadList(), SaveDynamicLoaderSections(), and SaveOffRegionsWithStackPointers().
|
private |
Definition at line 63 of file SaveCoreOptions.h.
Referenced by Clear(), GetOutputFile(), and SetOutputFile().
|
private |
Definition at line 62 of file SaveCoreOptions.h.
Referenced by Clear(), GetPluginName(), and SetPluginName().
|
private |
Definition at line 65 of file SaveCoreOptions.h.
Referenced by AddThread(), Clear(), EnsureValidConfiguration(), GetCurrentSizeInBytes(), GetMemoryRegionsToSave(), GetProcess(), GetThreadsToSave(), and SetProcess().
|
private |
Definition at line 67 of file SaveCoreOptions.h.
Referenced by AddMemoryRegionToSave(), Clear(), and GetCoreFileMemoryRanges().
|
private |
Definition at line 64 of file SaveCoreOptions.h.
Referenced by Clear(), GetStyle(), and SetStyle().
|
private |
Definition at line 66 of file SaveCoreOptions.h.
Referenced by AddThread(), Clear(), ClearProcessSpecificData(), EnsureValidConfiguration(), GetThreadsToSave(), HasSpecifiedThreads(), RemoveThread(), and ShouldThreadBeSaved().