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

#include <CommandInterpreter.h>

Collaboration diagram for lldb_private::CommandInterpreterRunOptions:
Collaboration graph

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 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 GetAddToHistory () const
void SetAddToHistory (bool add_to_history)

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_add_to_history

Detailed Description

Definition at line 30 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  add_to_history 

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_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_commandsis true.
[in]print_resultsIf true 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 61 of file CommandInterpreter.h.

◆ CommandInterpreterRunOptions() [2/2]

lldb_private::CommandInterpreterRunOptions::CommandInterpreterRunOptions ( )

Definition at line 70 of file CommandInterpreter.h.

Member Function Documentation

◆ GetAddToHistory()

bool lldb_private::CommandInterpreterRunOptions::GetAddToHistory ( ) const

Definition at line 130 of file CommandInterpreter.h.

References m_add_to_history.

Referenced by lldb_private::CommandInterpreter::HandleCommands().

◆ GetEchoCommands()

bool lldb_private::CommandInterpreterRunOptions::GetEchoCommands ( ) const

◆ GetEchoCommentCommands()

bool lldb_private::CommandInterpreterRunOptions::GetEchoCommentCommands ( ) const

◆ GetPrintResults()

bool lldb_private::CommandInterpreterRunOptions::GetPrintResults ( ) const

Definition at line 124 of file CommandInterpreter.h.

References m_print_results.

Referenced by lldb_private::CommandInterpreter::HandleCommands().

◆ GetStopOnContinue()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnContinue ( ) const

Definition at line 92 of file CommandInterpreter.h.

References m_stop_on_continue.

Referenced by lldb_private::CommandInterpreter::HandleCommands().

◆ GetStopOnCrash()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnCrash ( ) const

◆ GetStopOnError()

bool lldb_private::CommandInterpreterRunOptions::GetStopOnError ( ) const

Definition at line 98 of file CommandInterpreter.h.

References m_stop_on_error.

Referenced by lldb_private::CommandInterpreter::HandleCommands().

◆ SetAddToHistory()

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

◆ SetEchoCommands()

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

◆ SetEchoCommentCommands()

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

◆ SetPrintResults()

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

◆ SetSilent()

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

◆ SetStopOnContinue()

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

◆ SetStopOnCrash()

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

◆ SetStopOnError()

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

Member Data Documentation

◆ m_add_to_history

LazyBool lldb_private::CommandInterpreterRunOptions::m_add_to_history

◆ m_echo_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_commands

◆ m_echo_comment_commands

LazyBool lldb_private::CommandInterpreterRunOptions::m_echo_comment_commands

◆ m_print_results

LazyBool lldb_private::CommandInterpreterRunOptions::m_print_results

◆ m_stop_on_continue

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_continue

◆ m_stop_on_crash

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_crash

◆ m_stop_on_error

LazyBool lldb_private::CommandInterpreterRunOptions::m_stop_on_error

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