LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::SaveCoreOptions Class Reference

#include <SaveCoreOptions.h>

Public Member Functions

 SaveCoreOptions ()
 
 ~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)
 
Status AddThread (lldb::ThreadSP thread_sp)
 
bool RemoveThread (lldb::ThreadSP thread_sp)
 
bool ShouldThreadBeSaved (lldb::tid_t tid) const
 
Status EnsureValidConfiguration (lldb::ProcessSP process_sp) const
 
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
 

Detailed Description

Definition at line 22 of file SaveCoreOptions.h.

Constructor & Destructor Documentation

◆ SaveCoreOptions()

lldb_private::SaveCoreOptions::SaveCoreOptions ( )
inline

Definition at line 24 of file SaveCoreOptions.h.

◆ ~SaveCoreOptions()

lldb_private::SaveCoreOptions::~SaveCoreOptions ( )
default

Member Function Documentation

◆ AddThread()

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

Definition at line 73 of file SaveCoreOptions.cpp.

References error(), m_process_sp, and m_threads_to_save.

◆ Clear()

void SaveCoreOptions::Clear ( )

◆ ClearProcessSpecificData()

void SaveCoreOptions::ClearProcessSpecificData ( )
private

Definition at line 121 of file SaveCoreOptions.cpp.

References m_threads_to_save.

Referenced by SetProcess().

◆ EnsureValidConfiguration()

Status SaveCoreOptions::EnsureValidConfiguration ( lldb::ProcessSP  process_sp) const

◆ GetOutputFile()

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

◆ GetPluginName()

std::optional< std::string > SaveCoreOptions::GetPluginName ( ) const

Definition at line 38 of file SaveCoreOptions.cpp.

References m_plugin_name.

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

◆ GetStyle()

lldb::SaveCoreStyle SaveCoreOptions::GetStyle ( ) const

◆ RemoveThread()

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

Definition at line 93 of file SaveCoreOptions.cpp.

References m_threads_to_save.

◆ SetOutputFile()

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

Definition at line 36 of file SaveCoreOptions.cpp.

References m_file.

Referenced by CommandObjectProcessSaveCore::DoExecute().

◆ SetPluginName()

Status SaveCoreOptions::SetPluginName ( const char *  name)

◆ SetProcess()

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

Definition at line 51 of file SaveCoreOptions.cpp.

References ClearProcessSpecificData(), error(), and m_process_sp.

◆ SetStyle()

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

◆ 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 50 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 49 of file SaveCoreOptions.h.

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

◆ m_process_sp

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

Definition at line 52 of file SaveCoreOptions.h.

Referenced by AddThread(), Clear(), EnsureValidConfiguration(), and SetProcess().

◆ m_style

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

Definition at line 51 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: