LLDB mainline
|
#include <CommandInterpreter.h>
Public Member Functions | |
CommandInterpreterRunOptions (LazyBool stop_on_continue, LazyBool stop_on_error, LazyBool stop_on_crash, LazyBool echo_commands, LazyBool echo_comments, LazyBool print_results, LazyBool print_errors, LazyBool add_to_history, LazyBool handle_repeats) | |
Construct a CommandInterpreterRunOptions object. | |
CommandInterpreterRunOptions ()=default | |
void | SetSilent (bool silent) |
bool | GetStopOnContinue () const |
void | SetStopOnContinue (bool stop_on_continue) |
bool | GetStopOnError () const |
void | SetStopOnError (bool stop_on_error) |
bool | GetStopOnCrash () const |
void | SetStopOnCrash (bool stop_on_crash) |
bool | GetEchoCommands () const |
void | SetEchoCommands (bool echo_commands) |
bool | GetEchoCommentCommands () const |
void | SetEchoCommentCommands (bool echo_comments) |
bool | GetPrintResults () const |
void | SetPrintResults (bool print_results) |
bool | GetPrintErrors () const |
void | SetPrintErrors (bool print_errors) |
bool | GetAddToHistory () const |
void | SetAddToHistory (bool add_to_history) |
bool | GetAutoHandleEvents () const |
void | SetAutoHandleEvents (bool auto_handle_events) |
bool | GetSpawnThread () const |
void | SetSpawnThread (bool spawn_thread) |
bool | GetAllowRepeats () const |
void | SetAllowRepeats (bool allow_repeats) |
Static Private Member Functions | |
static bool | DefaultToYes (LazyBool flag) |
static bool | DefaultToNo (LazyBool flag) |
Definition at line 62 of file CommandInterpreter.h.
|
inline |
Construct a CommandInterpreterRunOptions object.
This class is used to control all the instances where we run multiple commands, e.g. HandleCommands, HandleCommandsFromFile, RunCommandInterpreter.
The meanings of the options in this object are:
[in] | stop_on_continue | If true, execution will end on the first command that causes the process in the execution context to continue. If false, we won't check the execution status. |
[in] | stop_on_error | If true, execution will end on the first command that causes an error. |
[in] | stop_on_crash | If true, when a command causes the target to run, and the end of the run is a signal or exception, stop executing the commands. |
[in] | echo_commands | If true, echo the command before executing it. If false, execute silently. |
[in] | echo_comments | If true, echo command even if it is a pure comment line. If false, print no ouput in this case. This setting has an effect only if echo_commands is true. |
[in] | print_results | If true and the command succeeds, print the results of the command after executing it. If false, execute silently. |
[in] | print_errors | If true and the command fails, print the results of the command after executing it. If false, execute silently. |
[in] | add_to_history | If true add the commands to the command history. If false, don't add them. |
[in] | handle_repeats | If true then treat empty lines as repeat commands even if the interpreter is non-interactive. |
Definition at line 99 of file CommandInterpreter.h.
|
default |
|
inlinestaticprivate |
Definition at line 219 of file CommandInterpreter.h.
References lldb_private::eLazyBoolYes.
Referenced by GetAllowRepeats(), GetSpawnThread(), GetStopOnContinue(), GetStopOnCrash(), and GetStopOnError().
|
inlinestaticprivate |
Definition at line 210 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo.
Referenced by GetAddToHistory(), GetAutoHandleEvents(), GetEchoCommands(), GetEchoCommentCommands(), GetPrintErrors(), and GetPrintResults().
|
inline |
Definition at line 171 of file CommandInterpreter.h.
References DefaultToYes(), and m_add_to_history.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 191 of file CommandInterpreter.h.
References DefaultToNo(), and m_allow_repeats.
|
inline |
Definition at line 177 of file CommandInterpreter.h.
References DefaultToYes(), and m_auto_handle_events.
Referenced by lldb_private::CommandInterpreter::RunCommandInterpreter().
|
inline |
Definition at line 145 of file CommandInterpreter.h.
References DefaultToYes(), and m_echo_commands.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 151 of file CommandInterpreter.h.
References DefaultToYes(), and m_echo_comment_commands.
|
inline |
Definition at line 165 of file CommandInterpreter.h.
References DefaultToYes(), and m_print_errors.
|
inline |
Definition at line 159 of file CommandInterpreter.h.
References DefaultToYes(), and m_print_results.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 185 of file CommandInterpreter.h.
References DefaultToNo(), and m_spawn_thread.
Referenced by lldb_private::CommandInterpreter::RunCommandInterpreter().
|
inline |
Definition at line 127 of file CommandInterpreter.h.
References DefaultToNo(), and m_stop_on_continue.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 139 of file CommandInterpreter.h.
References DefaultToNo(), and m_stop_on_crash.
Referenced by lldb_private::CommandInterpreter::HandleCommands(), and lldb_private::CommandInterpreter::HandleCommandsFromFile().
|
inline |
Definition at line 133 of file CommandInterpreter.h.
References DefaultToNo(), and m_stop_on_error.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 173 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_add_to_history.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectSettingsRead::DoExecute(), and lldb_private::Target::StopHookCommandLine::HandleStop().
|
inline |
Definition at line 193 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_allow_repeats.
|
inline |
Definition at line 181 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_auto_handle_events.
Referenced by lldb::SBDebugger::RunCommandInterpreter().
|
inline |
Definition at line 147 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_echo_commands.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectCommandsSource::DoExecute(), CommandObjectSettingsRead::DoExecute(), and lldb_private::Target::StopHookCommandLine::HandleStop().
|
inline |
Definition at line 155 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_echo_comment_commands.
Referenced by CommandObjectCommandsSource::DoExecute().
|
inline |
Definition at line 167 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_print_errors.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectCommandsSource::DoExecute(), CommandObjectSettingsRead::DoExecute(), lldb_private::Target::StopHookCommandLine::HandleStop(), and lldb_private::CommandInterpreter::SourceInitFile().
|
inline |
Definition at line 161 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_print_results.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectCommandsSource::DoExecute(), CommandObjectSettingsRead::DoExecute(), and lldb_private::Target::StopHookCommandLine::HandleStop().
|
inline |
Definition at line 113 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, m_add_to_history, m_echo_commands, m_echo_comment_commands, m_print_errors, and m_print_results.
Referenced by CommandObjectCommandsSource::DoExecute(), and lldb_private::CommandInterpreter::SourceInitFile().
|
inline |
Definition at line 187 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_spawn_thread.
Referenced by lldb::SBDebugger::RunCommandInterpreter().
|
inline |
Definition at line 129 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_stop_on_continue.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectCommandsSource::DoExecute(), lldb_private::Target::StopHookCommandLine::HandleStop(), and lldb_private::CommandInterpreter::SourceInitFile().
|
inline |
Definition at line 141 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_stop_on_crash.
|
inline |
Definition at line 135 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_stop_on_error.
Referenced by lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), CommandObjectCommandsSource::DoExecute(), CommandObjectSettingsRead::DoExecute(), lldb_private::Target::StopHookCommandLine::HandleStop(), and lldb_private::CommandInterpreter::SourceInitFile().
LazyBool lldb_private::CommandInterpreterRunOptions::m_add_to_history = eLazyBoolCalculate |
Definition at line 204 of file CommandInterpreter.h.
Referenced by GetAddToHistory(), lldb_private::CommandInterpreter::HandleCommands(), SetAddToHistory(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_allow_repeats = eLazyBoolCalculate |
Definition at line 207 of file CommandInterpreter.h.
Referenced by GetAllowRepeats(), lldb_private::CommandInterpreter::GetIOHandler(), and SetAllowRepeats().
LazyBool lldb_private::CommandInterpreterRunOptions::m_auto_handle_events |
Definition at line 205 of file CommandInterpreter.h.
Referenced by GetAutoHandleEvents(), and SetAutoHandleEvents().
LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_commands = eLazyBoolCalculate |
Definition at line 200 of file CommandInterpreter.h.
Referenced by GetEchoCommands(), lldb_private::CommandInterpreter::GetIOHandler(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), SetEchoCommands(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_comment_commands = eLazyBoolCalculate |
Definition at line 201 of file CommandInterpreter.h.
Referenced by GetEchoCommentCommands(), lldb_private::CommandInterpreter::GetIOHandler(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), SetEchoCommentCommands(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_print_errors = eLazyBoolCalculate |
Definition at line 203 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetPrintErrors(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), SetPrintErrors(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_print_results = eLazyBoolCalculate |
Definition at line 202 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetPrintResults(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), SetPrintResults(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_spawn_thread |
Definition at line 206 of file CommandInterpreter.h.
Referenced by GetSpawnThread(), and SetSpawnThread().
LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_continue = eLazyBoolCalculate |
Definition at line 197 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetStopOnContinue(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), and SetStopOnContinue().
LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_crash = eLazyBoolCalculate |
Definition at line 199 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetStopOnCrash(), and SetStopOnCrash().
LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_error = eLazyBoolCalculate |
Definition at line 198 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetStopOnError(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), and SetStopOnError().