[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 14 22:29:36 PST 2025


================
@@ -500,19 +502,16 @@ bool CommandObjectExpression::EvaluateExpression(llvm::StringRef expr,
 void CommandObjectExpression::IOHandlerInputComplete(IOHandler &io_handler,
                                                      std::string &line) {
   io_handler.SetIsDone(true);
-  StreamFileSP output_sp = io_handler.GetOutputStreamFileSP();
-  StreamFileSP error_sp = io_handler.GetErrorStreamFileSP();
+  LockedStreamFile locked_output_stream =
+      io_handler.GetOutputStreamFileSP()->Lock();
+  LockedStreamFile locked_error_stream =
+      io_handler.GetErrorStreamFileSP()->Lock();
----------------
JDevlieghere wrote:

Fixed in ed32d85d31999756602a7d5c4647cb6771d8f857

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


More information about the lldb-commits mailing list