[Lldb-commits] [lldb] [lldb][repl] fix output interleaving with the status line (PR #183600)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 26 13:57:25 PST 2026


================
@@ -95,8 +95,15 @@ bool ClangREPL::PrintOneVariable(Debugger &debugger,
     if (m_implicit_expr_result_regex.Execute(var->GetName().GetStringRef()))
       return true;
   }
-  if (llvm::Error error = valobj_sp->Dump(*output_sp))
-    *output_sp << "error: " << toString(std::move(error));
+
+  {
+    // Suspend the statusline while printing to prevent its ANSI cursor
+    // save/restore sequences from interleaving with the output.
+    LockedStreamFile locked_stream = output_stream_sp->Lock();
----------------
JDevlieghere wrote:

You're right, I missed that we're passing it to `Dump`!

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


More information about the lldb-commits mailing list