LLDB mainline
|
#include <SBSaveCoreOptions.h>
Public Member Functions | |
SBSaveCoreOptions () | |
SBSaveCoreOptions (const lldb::SBSaveCoreOptions &rhs) | |
~SBSaveCoreOptions () | |
const SBSaveCoreOptions & | operator= (const lldb::SBSaveCoreOptions &rhs) |
SBError | SetPluginName (const char *plugin) |
Set the plugin name. | |
const char * | GetPluginName () const |
Get the Core dump plugin name, if set. | |
void | SetStyle (lldb::SaveCoreStyle style) |
Set the Core dump style. | |
lldb::SaveCoreStyle | GetStyle () const |
Get the Core dump style, if set. | |
void | SetOutputFile (SBFileSpec output_file) |
SBFileSpec | GetOutputFile () const |
Get the output file spec. | |
SBError | SetProcess (lldb::SBProcess process) |
Set the process to save, or unset if supplied with a default constructed process. | |
SBError | AddThread (lldb::SBThread thread) |
Add a thread to save in the core file. | |
bool | RemoveThread (lldb::SBThread thread) |
Remove a thread from the list of threads to save. | |
SBError | AddMemoryRegionToSave (const SBMemoryRegionInfo ®ion) |
Add a memory region to save in the core file. | |
SBThreadCollection | GetThreadsToSave () const |
Get an unsorted copy of all threads to save. | |
void | Clear () |
Reset all options. | |
Protected Member Functions | |
lldb_private::SaveCoreOptions & | ref () const |
Private Attributes | |
std::unique_ptr< lldb_private::SaveCoreOptions > | m_opaque_up |
Friends | |
class | SBProcess |
class | SBThreadCollection |
Definition at line 21 of file SBSaveCoreOptions.h.
SBSaveCoreOptions::SBSaveCoreOptions | ( | ) |
Definition at line 20 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
SBSaveCoreOptions::SBSaveCoreOptions | ( | const lldb::SBSaveCoreOptions & | rhs | ) |
Definition at line 26 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
|
default |
lldb::SBError SBSaveCoreOptions::AddMemoryRegionToSave | ( | const SBMemoryRegionInfo & | region | ) |
Add a memory region to save in the core file.
region | The memory region to save. |
Definition at line 95 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBMemoryRegionInfo::ref().
SBError SBSaveCoreOptions::AddThread | ( | lldb::SBThread | thread | ) |
Add a thread to save in the core file.
thread | The thread to save. |
Definition at line 84 of file SBSaveCoreOptions.cpp.
References lldb::SBThread::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_up.
void SBSaveCoreOptions::Clear | ( | ) |
Reset all options.
Definition at line 112 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
SBFileSpec SBSaveCoreOptions::GetOutputFile | ( | ) | const |
Get the output file spec.
Definition at line 66 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
const char * SBSaveCoreOptions::GetPluginName | ( | ) | const |
Get the Core dump plugin name, if set.
Definition at line 58 of file SBSaveCoreOptions.cpp.
References lldb_private::ConstString::GetCString(), LLDB_INSTRUMENT_VA, and m_opaque_up.
lldb::SaveCoreStyle SBSaveCoreOptions::GetStyle | ( | ) | const |
Get the Core dump style, if set.
Definition at line 74 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
lldb::SBThreadCollection SBSaveCoreOptions::GetThreadsToSave | ( | ) | const |
Get an unsorted copy of all threads to save.
Definition at line 104 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBThreadCollection.
const SBSaveCoreOptions & SBSaveCoreOptions::operator= | ( | const lldb::SBSaveCoreOptions & | rhs | ) |
Definition at line 35 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
|
protected |
Definition at line 117 of file SBSaveCoreOptions.cpp.
References m_opaque_up.
Referenced by lldb::SBProcess::SaveCore().
bool SBSaveCoreOptions::RemoveThread | ( | lldb::SBThread | thread | ) |
Remove a thread from the list of threads to save.
thread | The thread to remove. |
Definition at line 89 of file SBSaveCoreOptions.cpp.
References lldb::SBThread::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_up.
void SBSaveCoreOptions::SetOutputFile | ( | lldb::SBFileSpec | file_spec | ) |
Definition at line 53 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBFileSpec::ref().
Referenced by lldb::SBProcess::SaveCore().
SBError SBSaveCoreOptions::SetPluginName | ( | const char * | plugin | ) |
Set the plugin name.
Supplying null or empty string will reset the option.
plugin | Name of the object file plugin. |
Definition at line 43 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBProcess::SaveCore().
SBError SBSaveCoreOptions::SetProcess | ( | lldb::SBProcess | process | ) |
Set the process to save, or unset if supplied with a default constructed process.
process | The process to save. |
Definition at line 79 of file SBSaveCoreOptions.cpp.
References lldb::SBProcess::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_up.
void SBSaveCoreOptions::SetStyle | ( | lldb::SaveCoreStyle | style | ) |
Set the Core dump style.
style | The style of the core dump. |
Definition at line 48 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBProcess::SaveCore().
|
friend |
Definition at line 126 of file SBSaveCoreOptions.h.
|
friend |
Definition at line 127 of file SBSaveCoreOptions.h.
Referenced by GetThreadsToSave().
|
private |
Definition at line 131 of file SBSaveCoreOptions.h.
Referenced by AddMemoryRegionToSave(), AddThread(), Clear(), GetOutputFile(), GetPluginName(), GetStyle(), GetThreadsToSave(), operator=(), ref(), RemoveThread(), SBSaveCoreOptions(), SetOutputFile(), SetPluginName(), SetProcess(), and SetStyle().