LLDB mainline
lldb_private::SaveCoreOptions Class Reference

#include <SaveCoreOptions.h>

Public Member Functions

 SaveCoreOptions ()=default
 ~SaveCoreOptions ()=default
lldb_private::Status SetPluginName (const char *name)
std::optional< std::string > GetPluginName () const
void SetStyle (lldb::SaveCoreStyle style)
lldb::SaveCoreStyle GetStyle () const
void SetOutputFile (lldb_private::FileSpec file)
const std::optional< lldb_private::FileSpecGetOutputFile () const
Status SetProcess (lldb::ProcessSP process_sp)
lldb::ProcessSP GetProcess ()
Status AddThread (lldb::ThreadSP thread_sp)
bool RemoveThread (lldb::ThreadSP thread_sp)
bool ShouldThreadBeSaved (lldb::tid_t tid) const
bool HasSpecifiedThreads () const
Status EnsureValidConfiguration () const
const MemoryRangesGetCoreFileMemoryRanges () const
void AddMemoryRegionToSave (const lldb_private::MemoryRegionInfo &region)
llvm::Expected< lldb_private::CoreFileMemoryRangesGetMemoryRegionsToSave ()
lldb_private::ThreadCollection::collection GetThreadsToSave () const
llvm::Expected< uint64_t > GetCurrentSizeInBytes ()
void Clear ()

Private Member Functions

void ClearProcessSpecificData ()

Private Attributes

std::optional< std::string > m_plugin_name
std::optional< lldb_private::FileSpecm_file
std::optional< lldb::SaveCoreStylem_style
lldb::ProcessSP m_process_sp
std::unordered_set< lldb::tid_tm_threads_to_save
MemoryRanges m_regions_to_save

Detailed Description

Definition at line 25 of file SaveCoreOptions.h.

Constructor & Destructor Documentation

◆ SaveCoreOptions()

lldb_private::SaveCoreOptions::SaveCoreOptions ( )
default

◆ ~SaveCoreOptions()

lldb_private::SaveCoreOptions::~SaveCoreOptions ( )
default

Member Function Documentation

◆ AddMemoryRegionToSave()

void SaveCoreOptions::AddMemoryRegionToSave ( const lldb_private::MemoryRegionInfo & region)

◆ AddThread()

Status SaveCoreOptions::AddThread ( lldb::ThreadSP thread_sp)

◆ Clear()

void SaveCoreOptions::Clear ( )

◆ ClearProcessSpecificData()

void SaveCoreOptions::ClearProcessSpecificData ( )
private

Definition at line 201 of file SaveCoreOptions.cpp.

References m_threads_to_save.

Referenced by SetProcess().

◆ EnsureValidConfiguration()

Status SaveCoreOptions::EnsureValidConfiguration ( ) const

◆ GetCoreFileMemoryRanges()

const MemoryRanges & SaveCoreOptions::GetCoreFileMemoryRanges ( ) const

Definition at line 124 of file SaveCoreOptions.cpp.

References m_regions_to_save.

Referenced by GetUserSpecifiedCoreFileSaveRanges().

◆ GetCurrentSizeInBytes()

llvm::Expected< uint64_t > SaveCoreOptions::GetCurrentSizeInBytes ( )

◆ GetMemoryRegionsToSave()

llvm::Expected< lldb_private::CoreFileMemoryRanges > SaveCoreOptions::GetMemoryRegionsToSave ( )

◆ GetOutputFile()

const std::optional< lldb_private::FileSpec > SaveCoreOptions::GetOutputFile ( ) const

◆ GetPluginName()

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().

◆ GetProcess()

lldb::ProcessSP lldb_private::SaveCoreOptions::GetProcess ( )
inline

Definition at line 40 of file SaveCoreOptions.h.

References m_process_sp.

Referenced by lldb_private::PluginManager::SaveCore().

◆ GetStyle()

◆ GetThreadsToSave()

lldb_private::ThreadCollection::collection SaveCoreOptions::GetThreadsToSave ( ) const

◆ HasSpecifiedThreads()

bool SaveCoreOptions::HasSpecifiedThreads ( ) const

◆ RemoveThread()

bool SaveCoreOptions::RemoveThread ( lldb::ThreadSP thread_sp)

Definition at line 104 of file SaveCoreOptions.cpp.

References m_threads_to_save.

◆ SetOutputFile()

void SaveCoreOptions::SetOutputFile ( lldb_private::FileSpec file)

Definition at line 46 of file SaveCoreOptions.cpp.

References m_file.

◆ SetPluginName()

◆ SetProcess()

Status SaveCoreOptions::SetProcess ( lldb::ProcessSP process_sp)

◆ SetStyle()

void SaveCoreOptions::SetStyle ( lldb::SaveCoreStyle style)

Definition at line 44 of file SaveCoreOptions.cpp.

References m_style.

Referenced by ObjectFileMachO::SaveCore(), and ObjectFileMinidump::SaveCore().

◆ ShouldThreadBeSaved()

bool SaveCoreOptions::ShouldThreadBeSaved ( lldb::tid_t tid) const

Member Data Documentation

◆ m_file

std::optional<lldb_private::FileSpec> lldb_private::SaveCoreOptions::m_file
private

Definition at line 63 of file SaveCoreOptions.h.

Referenced by Clear(), GetOutputFile(), and SetOutputFile().

◆ m_plugin_name

std::optional<std::string> lldb_private::SaveCoreOptions::m_plugin_name
private

Definition at line 62 of file SaveCoreOptions.h.

Referenced by Clear(), GetPluginName(), and SetPluginName().

◆ m_process_sp

lldb::ProcessSP lldb_private::SaveCoreOptions::m_process_sp
private

◆ m_regions_to_save

MemoryRanges lldb_private::SaveCoreOptions::m_regions_to_save
private

Definition at line 67 of file SaveCoreOptions.h.

Referenced by AddMemoryRegionToSave(), Clear(), and GetCoreFileMemoryRanges().

◆ m_style

std::optional<lldb::SaveCoreStyle> lldb_private::SaveCoreOptions::m_style
private

Definition at line 64 of file SaveCoreOptions.h.

Referenced by Clear(), GetStyle(), and SetStyle().

◆ m_threads_to_save

std::unordered_set<lldb::tid_t> lldb_private::SaveCoreOptions::m_threads_to_save
private

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