LLDB mainline
Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
lldb_private::CommandInterpreterRunOptions Class Reference

#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)
 

Public Attributes

LazyBool m_stop_on_continue = eLazyBoolCalculate
 
LazyBool m_stop_on_error = eLazyBoolCalculate
 
LazyBool m_stop_on_crash = eLazyBoolCalculate
 
LazyBool m_echo_commands = eLazyBoolCalculate
 
LazyBool m_echo_comment_commands = eLazyBoolCalculate
 
LazyBool m_print_results = eLazyBoolCalculate
 
LazyBool m_print_errors = eLazyBoolCalculate
 
LazyBool m_add_to_history = eLazyBoolCalculate
 
LazyBool m_auto_handle_events
 
LazyBool m_spawn_thread
 
LazyBool m_allow_repeats = eLazyBoolCalculate
 

Static Private Member Functions

static bool DefaultToYes (LazyBool flag)
 
static bool DefaultToNo (LazyBool flag)
 

Detailed Description

Definition at line 62 of file CommandInterpreter.h.

Constructor & Destructor Documentation

◆ CommandInterpreterRunOptions() [1/2]

lldb_private::CommandInterpreterRunOptions::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 
)
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:

Parameters
[in]stop_on_continueIf 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_errorIf true, execution will end on the first command that causes an error.
[in]stop_on_crashIf 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_commandsIf true, echo the command before executing it. If false, execute silently.
[in]echo_commentsIf 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_resultsIf true and the command succeeds, print the results of the command after executing it. If false, execute silently.
[in]print_errorsIf true and the command fails, print the results of the command after executing it. If false, execute silently.
[in]add_to_historyIf true add the commands to the command history. If false, don't add them.
[in]handle_repeatsIf true then treat empty lines as repeat commands even if the interpreter is non-interactive.

Definition at line 99 of file CommandInterpreter.h.

◆ CommandInterpreterRunOptions() [2/2]

lldb_private::CommandInterpreterRunOptions::CommandInterpreterRunOptions ( )
default

Member Function Documentation

◆ DefaultToNo()

static bool lldb_private::CommandInterpreterRunOptions::DefaultToNo ( LazyBool  flag)
inlinestaticprivate

◆ DefaultToYes()

static bool lldb_private::CommandInterpreterRunOptions::DefaultToYes ( LazyBool  flag)
inlinestaticprivate

◆ GetAddToHistory()

bool lldb_private::CommandInterpreterRunOptions::GetAddToHistory ( ) const
inline

◆ GetAllowRepeats()

bool lldb_private::CommandInterpreterRunOptions::GetAllowRepeats ( ) const
inline

Definition at line 191 of file CommandInterpreter.h.

References DefaultToNo(), and m_allow_repeats.

◆ GetAutoHandleEvents()

bool lldb_private::CommandInterpreterRunOptions::GetAutoHandleEvents ( ) const
inline

◆ GetEchoCommands()

bool lldb_private::CommandInterpreterRunOptions::GetEchoCommands ( ) const
inline

◆ GetEchoCommentCommands()

bool lldb_private::CommandInterpreterRunOptions::GetEchoCommentCommands ( ) const
inline

Definition at line 151 of file CommandInterpreter.h.

References DefaultToYes(), and m_echo_comment_commands.

◆ GetPrintErrors()

bool lldb_private::CommandInterpreterRunOptions::GetPrintErrors ( ) const
inline

Definition at line 165 of file CommandInterpreter.h.

References DefaultToYes(), and m_print_errors.

◆ GetPrintResults()

bool lldb_private::CommandInterpreterRunOptions::GetPrintResults ( ) const
inline

◆ GetSpawnThread()

bool lldb_private::CommandInterpreterRunOptions::GetSpawnThread ( ) const
inline

◆ GetStopOnContinue()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnContinue ( ) const
inline

◆ GetStopOnCrash()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnCrash ( ) const
inline

◆ GetStopOnError()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnError ( ) const
inline

◆ SetAddToHistory()

void lldb_private::CommandInterpreterRunOptions::SetAddToHistory ( bool  add_to_history)
inline

◆ SetAllowRepeats()

void lldb_private::CommandInterpreterRunOptions::SetAllowRepeats ( bool  allow_repeats)
inline

◆ SetAutoHandleEvents()

void lldb_private::CommandInterpreterRunOptions::SetAutoHandleEvents ( bool  auto_handle_events)
inline

◆ SetEchoCommands()

void lldb_private::CommandInterpreterRunOptions::SetEchoCommands ( bool  echo_commands)
inline

◆ SetEchoCommentCommands()

void lldb_private::CommandInterpreterRunOptions::SetEchoCommentCommands ( bool  echo_comments)
inline

◆ SetPrintErrors()

void lldb_private::CommandInterpreterRunOptions::SetPrintErrors ( bool  print_errors)
inline

◆ SetPrintResults()

void lldb_private::CommandInterpreterRunOptions::SetPrintResults ( bool  print_results)
inline

◆ SetSilent()

void lldb_private::CommandInterpreterRunOptions::SetSilent ( bool  silent)
inline

◆ SetSpawnThread()

void lldb_private::CommandInterpreterRunOptions::SetSpawnThread ( bool  spawn_thread)
inline

◆ SetStopOnContinue()

void lldb_private::CommandInterpreterRunOptions::SetStopOnContinue ( bool  stop_on_continue)
inline

◆ SetStopOnCrash()

void lldb_private::CommandInterpreterRunOptions::SetStopOnCrash ( bool  stop_on_crash)
inline

◆ SetStopOnError()

void lldb_private::CommandInterpreterRunOptions::SetStopOnError ( bool  stop_on_error)
inline

Member Data Documentation

◆ m_add_to_history

LazyBool lldb_private::CommandInterpreterRunOptions::m_add_to_history = eLazyBoolCalculate

◆ m_allow_repeats

LazyBool lldb_private::CommandInterpreterRunOptions::m_allow_repeats = eLazyBoolCalculate

◆ m_auto_handle_events

LazyBool lldb_private::CommandInterpreterRunOptions::m_auto_handle_events

Definition at line 205 of file CommandInterpreter.h.

Referenced by GetAutoHandleEvents(), and SetAutoHandleEvents().

◆ m_echo_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_commands = eLazyBoolCalculate

◆ m_echo_comment_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_comment_commands = eLazyBoolCalculate

◆ m_print_errors

LazyBool lldb_private::CommandInterpreterRunOptions::m_print_errors = eLazyBoolCalculate

◆ m_print_results

LazyBool lldb_private::CommandInterpreterRunOptions::m_print_results = eLazyBoolCalculate

◆ m_spawn_thread

LazyBool lldb_private::CommandInterpreterRunOptions::m_spawn_thread

Definition at line 206 of file CommandInterpreter.h.

Referenced by GetSpawnThread(), and SetSpawnThread().

◆ m_stop_on_continue

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_continue = eLazyBoolCalculate

◆ m_stop_on_crash

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_crash = eLazyBoolCalculate

◆ m_stop_on_error

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_error = eLazyBoolCalculate

The documentation for this class was generated from the following file: