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

#include <CommandInterpreter.h>

Collaboration diagram for lldb_private::CommandInterpreterRunOptions:
Collaboration graph
[legend]

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. More...
 
 CommandInterpreterRunOptions ()
 
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)
 

Public Attributes

LazyBool m_stop_on_continue
 
LazyBool m_stop_on_error
 
LazyBool m_stop_on_crash
 
LazyBool m_echo_commands
 
LazyBool m_echo_comment_commands
 
LazyBool m_print_results
 
LazyBool m_print_errors
 
LazyBool m_add_to_history
 
LazyBool m_auto_handle_events
 
LazyBool m_spawn_thread
 

Static Private Member Functions

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

Detailed Description

Definition at line 59 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 
)
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.

Definition at line 93 of file CommandInterpreter.h.

◆ CommandInterpreterRunOptions() [2/2]

lldb_private::CommandInterpreterRunOptions::CommandInterpreterRunOptions ( )
inline

Definition at line 103 of file CommandInterpreter.h.

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

Definition at line 170 of file CommandInterpreter.h.

References DefaultToYes(), and m_add_to_history.

◆ GetAutoHandleEvents()

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

Definition at line 176 of file CommandInterpreter.h.

References DefaultToYes(), and m_auto_handle_events.

◆ GetEchoCommands()

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

Definition at line 144 of file CommandInterpreter.h.

References DefaultToYes(), and m_echo_commands.

◆ GetEchoCommentCommands()

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

Definition at line 150 of file CommandInterpreter.h.

References DefaultToYes(), and m_echo_comment_commands.

◆ GetPrintErrors()

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

Definition at line 164 of file CommandInterpreter.h.

References DefaultToYes(), and m_print_errors.

◆ GetPrintResults()

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

Definition at line 158 of file CommandInterpreter.h.

References DefaultToYes(), and m_print_results.

◆ GetSpawnThread()

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

Definition at line 184 of file CommandInterpreter.h.

References DefaultToNo(), and m_spawn_thread.

◆ GetStopOnContinue()

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

Definition at line 126 of file CommandInterpreter.h.

References DefaultToNo(), and m_stop_on_continue.

◆ GetStopOnCrash()

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

Definition at line 138 of file CommandInterpreter.h.

References DefaultToNo(), and m_stop_on_crash.

◆ GetStopOnError()

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

Definition at line 132 of file CommandInterpreter.h.

References DefaultToNo(), and m_stop_on_error.

◆ SetAddToHistory()

void lldb_private::CommandInterpreterRunOptions::SetAddToHistory ( bool  add_to_history)
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

Definition at line 197 of file CommandInterpreter.h.

Referenced by GetAddToHistory(), SetAddToHistory(), and SetSilent().

◆ m_auto_handle_events

LazyBool lldb_private::CommandInterpreterRunOptions::m_auto_handle_events

Definition at line 198 of file CommandInterpreter.h.

Referenced by GetAutoHandleEvents(), and SetAutoHandleEvents().

◆ m_echo_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_commands

Definition at line 193 of file CommandInterpreter.h.

Referenced by GetEchoCommands(), SetEchoCommands(), and SetSilent().

◆ m_echo_comment_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_comment_commands

Definition at line 194 of file CommandInterpreter.h.

Referenced by GetEchoCommentCommands(), SetEchoCommentCommands(), and SetSilent().

◆ m_print_errors

LazyBool lldb_private::CommandInterpreterRunOptions::m_print_errors

Definition at line 196 of file CommandInterpreter.h.

Referenced by GetPrintErrors(), SetPrintErrors(), and SetSilent().

◆ m_print_results

LazyBool lldb_private::CommandInterpreterRunOptions::m_print_results

Definition at line 195 of file CommandInterpreter.h.

Referenced by GetPrintResults(), SetPrintResults(), and SetSilent().

◆ m_spawn_thread

LazyBool lldb_private::CommandInterpreterRunOptions::m_spawn_thread

Definition at line 199 of file CommandInterpreter.h.

Referenced by GetSpawnThread(), and SetSpawnThread().

◆ m_stop_on_continue

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_continue

Definition at line 190 of file CommandInterpreter.h.

Referenced by GetStopOnContinue(), and SetStopOnContinue().

◆ m_stop_on_crash

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_crash

Definition at line 192 of file CommandInterpreter.h.

Referenced by GetStopOnCrash(), and SetStopOnCrash().

◆ m_stop_on_error

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_error

Definition at line 191 of file CommandInterpreter.h.

Referenced by GetStopOnError(), and SetStopOnError().


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