LLDB mainline
|
#include <BreakpointOptions.h>
Public Member Functions | |
CommandData ()=default | |
CommandData (const StringList &user_source, lldb::ScriptLanguage interp) | |
virtual | ~CommandData ()=default |
StructuredData::ObjectSP | SerializeToStructuredData () |
Static Public Member Functions | |
static const char * | GetSerializationKey () |
static std::unique_ptr< CommandData > | CreateFromStructuredData (const StructuredData::Dictionary &options_dict, Status &error) |
Public Attributes | |
StringList | user_source |
std::string | script_source |
enum lldb::ScriptLanguage | interpreter |
bool | stop_on_error = true |
Private Types | |
enum class | OptionNames : uint32_t { UserSource = 0 , Interpreter , StopOnError , LastOptionName } |
Static Private Member Functions | |
static const char * | GetKey (OptionNames enum_value) |
Static Private Attributes | |
static const char * | g_option_names [static_cast< uint32_t >(OptionNames::LastOptionName)] |
Definition at line 45 of file BreakpointOptions.h.
|
strongprivate |
Enumerator | |
---|---|
UserSource | |
Interpreter | |
StopOnError | |
LastOptionName |
Definition at line 69 of file BreakpointOptions.h.
|
default |
|
inline |
Definition at line 48 of file BreakpointOptions.h.
|
virtualdefault |
|
static |
Definition at line 60 of file BreakpointOptions.cpp.
References error(), lldb::eScriptLanguageUnknown, lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormatv(), lldb_private::StructuredData::Array::GetItemAtIndexAsString(), lldb_private::BreakpointOptions::GetKey(), lldb_private::StructuredData::Array::GetSize(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsArray(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsBoolean(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsString(), and lldb_private::ScriptInterpreter::StringToLanguage().
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData().
|
inlinestaticprivate |
Definition at line 79 of file BreakpointOptions.h.
References g_option_names.
Referenced by SerializeToStructuredData().
|
inlinestatic |
Definition at line 53 of file BreakpointOptions.h.
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData(), and lldb_private::BreakpointOptions::SerializeToStructuredData().
StructuredData::ObjectSP BreakpointOptions::CommandData::SerializeToStructuredData | ( | ) |
Definition at line 32 of file BreakpointOptions.cpp.
References GetKey(), lldb_private::StringList::GetSize(), interpreter, Interpreter, lldb_private::ScriptInterpreter::LanguageToString(), script_source, stop_on_error, StopOnError, user_source, and UserSource.
|
staticprivate |
Definition at line 77 of file BreakpointOptions.h.
Referenced by GetKey().
enum lldb::ScriptLanguage lldb_private::BreakpointOptions::CommandData::interpreter |
Definition at line 63 of file BreakpointOptions.h.
Referenced by lldb_private::ScriptInterpreterLua::CommandDataLua::CommandDataLua(), and SerializeToStructuredData().
std::string lldb_private::BreakpointOptions::CommandData::script_source |
Definition at line 62 of file BreakpointOptions.h.
Referenced by SerializeToStructuredData().
bool lldb_private::BreakpointOptions::CommandData::stop_on_error = true |
Definition at line 66 of file BreakpointOptions.h.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), and SerializeToStructuredData().
StringList lldb_private::BreakpointOptions::CommandData::user_source |
Definition at line 61 of file BreakpointOptions.h.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), lldb_private::BreakpointOptions::GetCommandLineCallbacks(), and SerializeToStructuredData().