[Lldb-commits] [lldb] Add AllowRepeats to SBCommandInterpreterRunOptions. (PR #94786)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 7 11:49:25 PDT 2024


================
@@ -93,15 +93,20 @@ class CommandInterpreterRunOptions {
   /// \param[in] add_to_history
   ///    If \b true add the commands to the command history. If \b false, don't
   ///    add them.
+  /// \param[in] process_repeats
+  ///    If \b true then process empty lines as repeat commands even if the
+  ///    interpreter is non-interactive.
   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 add_to_history,
+                               LazyBool process_repeats)
----------------
jimingham wrote:

I was trying to stay in line with the other parameter names in this function.  So for instance, add_to_history says commands should be added to the history.  The option I'm adding is to tell RunCommandInterpreter to process any repeat commands in the input stream.

https://github.com/llvm/llvm-project/pull/94786


More information about the lldb-commits mailing list