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) | |
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) |
Static Private Member Functions | |
static bool | DefaultToYes (LazyBool flag) |
static bool | DefaultToNo (LazyBool flag) |
Definition at line 60 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. |
Definition at line 94 of file CommandInterpreter.h.
|
default |
|
inlinestaticprivate |
Definition at line 205 of file CommandInterpreter.h.
References lldb_private::eLazyBoolYes.
Referenced by GetSpawnThread(), GetStopOnContinue(), GetStopOnCrash(), and GetStopOnError().
|
inlinestaticprivate |
Definition at line 196 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo.
Referenced by GetAddToHistory(), GetAutoHandleEvents(), GetEchoCommands(), GetEchoCommentCommands(), GetPrintErrors(), and GetPrintResults().
|
inline |
Definition at line 164 of file CommandInterpreter.h.
References DefaultToYes(), and m_add_to_history.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 170 of file CommandInterpreter.h.
References DefaultToYes(), and m_auto_handle_events.
Referenced by lldb_private::CommandInterpreter::RunCommandInterpreter().
|
inline |
Definition at line 138 of file CommandInterpreter.h.
References DefaultToYes(), and m_echo_commands.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 144 of file CommandInterpreter.h.
References DefaultToYes(), and m_echo_comment_commands.
|
inline |
Definition at line 158 of file CommandInterpreter.h.
References DefaultToYes(), and m_print_errors.
|
inline |
Definition at line 152 of file CommandInterpreter.h.
References DefaultToYes(), and m_print_results.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 178 of file CommandInterpreter.h.
References DefaultToNo(), and m_spawn_thread.
Referenced by lldb_private::CommandInterpreter::RunCommandInterpreter().
|
inline |
Definition at line 120 of file CommandInterpreter.h.
References DefaultToNo(), and m_stop_on_continue.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 132 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 126 of file CommandInterpreter.h.
References DefaultToNo(), and m_stop_on_error.
Referenced by lldb_private::CommandInterpreter::HandleCommands().
|
inline |
Definition at line 166 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 174 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 140 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 148 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_echo_comment_commands.
Referenced by CommandObjectCommandsSource::DoExecute().
|
inline |
Definition at line 160 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 154 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 106 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 180 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_spawn_thread.
Referenced by lldb::SBDebugger::RunCommandInterpreter().
|
inline |
Definition at line 122 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 134 of file CommandInterpreter.h.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, and m_stop_on_crash.
|
inline |
Definition at line 128 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 191 of file CommandInterpreter.h.
Referenced by GetAddToHistory(), lldb_private::CommandInterpreter::HandleCommands(), SetAddToHistory(), and SetSilent().
LazyBool lldb_private::CommandInterpreterRunOptions::m_auto_handle_events |
Definition at line 192 of file CommandInterpreter.h.
Referenced by GetAutoHandleEvents(), and SetAutoHandleEvents().
LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_commands = eLazyBoolCalculate |
Definition at line 187 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 188 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 190 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 189 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 193 of file CommandInterpreter.h.
Referenced by GetSpawnThread(), and SetSpawnThread().
LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_continue = eLazyBoolCalculate |
Definition at line 184 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 186 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 185 of file CommandInterpreter.h.
Referenced by lldb_private::CommandInterpreter::GetIOHandler(), GetStopOnError(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), and SetStopOnError().