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) |
Set the output file path. | |
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. | |
SBProcess | GetProcess () |
Get the process to save, if the process is not set an invalid SBProcess will be returned. | |
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. | |
SBMemoryRegionInfoList | GetMemoryRegionsToSave () |
Get an unsorted copy of all memory regions to save. | |
uint64_t | GetCurrentSizeInBytes (SBError &error) |
Get the current total number of bytes the core is expected to have excluding the overhead of the core file format. | |
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 22 of file SBSaveCoreOptions.h.
SBSaveCoreOptions::SBSaveCoreOptions | ( | ) |
Definition at line 20 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by operator=(), SBSaveCoreOptions(), and ~SBSaveCoreOptions().
SBSaveCoreOptions::SBSaveCoreOptions | ( | const lldb::SBSaveCoreOptions & | rhs | ) |
Definition at line 26 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBSaveCoreOptions().
|
default |
References AddMemoryRegionToSave(), AddThread(), Clear(), error(), GetCurrentSizeInBytes(), GetMemoryRegionsToSave(), GetOutputFile(), GetPluginName(), GetProcess(), GetStyle(), GetThreadsToSave(), operator=(), RemoveThread(), SBProcess, SBSaveCoreOptions(), SBThreadCollection, SetOutputFile(), SetPluginName(), SetProcess(), and SetStyle().
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 100 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, lldb::SBMemoryRegionInfo::ref(), and lldb::SBError.
Referenced by ~SBSaveCoreOptions().
SBError SBSaveCoreOptions::AddThread | ( | lldb::SBThread | thread | ) |
Add a thread to save in the core file.
thread | The thread to save. |
Definition at line 89 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBSaveCoreOptions().
void SBSaveCoreOptions::Clear | ( | ) |
Reset all options.
Definition at line 117 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBSaveCoreOptions().
uint64_t SBSaveCoreOptions::GetCurrentSizeInBytes | ( | SBError & | error | ) |
Get the current total number of bytes the core is expected to have excluding the overhead of the core file format.
Requires a Process and Style to be specified.
Definition at line 122 of file SBSaveCoreOptions.cpp.
References error(), lldb_private::Status::FromError(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBError.
Referenced by ~SBSaveCoreOptions().
lldb::SBMemoryRegionInfoList SBSaveCoreOptions::GetMemoryRegionsToSave | ( | ) |
Get an unsorted copy of all memory regions to save.
Definition at line 136 of file SBSaveCoreOptions.cpp.
References lldb::SBMemoryRegionInfoList::Append(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBMemoryRegionInfoList.
Referenced by ~SBSaveCoreOptions().
SBFileSpec SBSaveCoreOptions::GetOutputFile | ( | ) | const |
Get the output file spec.
Definition at line 66 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBFileSpec.
Referenced by ~SBSaveCoreOptions().
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.
Referenced by ~SBSaveCoreOptions().
SBProcess SBSaveCoreOptions::GetProcess | ( | ) |
Get the process to save, if the process is not set an invalid SBProcess will be returned.
Definition at line 84 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBProcess.
Referenced by lldb::SBProcess::SaveCore(), and ~SBSaveCoreOptions().
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.
Referenced by ~SBSaveCoreOptions().
lldb::SBThreadCollection SBSaveCoreOptions::GetThreadsToSave | ( | ) | const |
Get an unsorted copy of all threads to save.
Definition at line 109 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBThreadCollection.
Referenced by ~SBSaveCoreOptions().
const SBSaveCoreOptions & SBSaveCoreOptions::operator= | ( | const lldb::SBSaveCoreOptions & | rhs | ) |
Definition at line 35 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBSaveCoreOptions().
Referenced by ~SBSaveCoreOptions().
|
protected |
Definition at line 156 of file SBSaveCoreOptions.cpp.
References m_opaque_up.
Referenced by lldb::SBProcess::SaveCore(), and SBThreadCollection.
bool SBSaveCoreOptions::RemoveThread | ( | lldb::SBThread | thread | ) |
Remove a thread from the list of threads to save.
thread | The thread to remove. |
Definition at line 94 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBSaveCoreOptions().
void SBSaveCoreOptions::SetOutputFile | ( | lldb::SBFileSpec | file_spec | ) |
Set the output file path.
output_file | a SBFileSpec object that describes the output file. |
Definition at line 53 of file SBSaveCoreOptions.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBFileSpec::ref().
Referenced by lldb::SBProcess::SaveCore(), lldb::SBProcess::SaveCore(), and ~SBSaveCoreOptions().
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, m_opaque_up, and lldb::SBError.
Referenced by lldb::SBProcess::SaveCore(), and ~SBSaveCoreOptions().
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.
Referenced by lldb::SBProcess::SaveCore(), and ~SBSaveCoreOptions().
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(), lldb::SBProcess::SaveCore(), and ~SBSaveCoreOptions().
|
friend |
Definition at line 154 of file SBSaveCoreOptions.h.
References SBProcess.
Referenced by GetProcess(), SBProcess, and ~SBSaveCoreOptions().
|
friend |
Definition at line 155 of file SBSaveCoreOptions.h.
References ref(), and SBThreadCollection.
Referenced by GetThreadsToSave(), SBThreadCollection, and ~SBSaveCoreOptions().
|
private |
Definition at line 159 of file SBSaveCoreOptions.h.
Referenced by AddMemoryRegionToSave(), AddThread(), Clear(), GetCurrentSizeInBytes(), GetMemoryRegionsToSave(), GetOutputFile(), GetPluginName(), GetProcess(), GetStyle(), GetThreadsToSave(), operator=(), ref(), RemoveThread(), SBSaveCoreOptions(), SBSaveCoreOptions(), SetOutputFile(), SetPluginName(), SetProcess(), and SetStyle().