[Lldb-commits] [lldb] [lldb-dap] Add feature to remember last non-empty expression. (PR #107485)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 19 06:20:42 PDT 2024


================
@@ -45,7 +45,8 @@ bool RunLLDBCommands(llvm::StringRef prefix,
       // RunTerminateCommands.
       static std::mutex handle_command_mutex;
       std::lock_guard<std::mutex> locker(handle_command_mutex);
-      interp.HandleCommand(command.str().c_str(), result);
+      interp.HandleCommand(command.str().c_str(), result,
+                           /* add_to_history */ true);
----------------
labath wrote:

Okay, I see now. The comment threw me off, as I though this code handles commands which run during termination.

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


More information about the lldb-commits mailing list