[Lldb-commits] [PATCH] D120961: [LLDB] Flush stream at the end of PrintCommandOutput

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 3 19:24:21 PST 2022


zequanwu created this revision.
zequanwu added a reviewer: labath.
Herald added a project: All.
zequanwu requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

On Windows, lldb doesn't print any error message until exit. This fixes it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120961

Files:
  lldb/source/Interpreter/CommandInterpreter.cpp


Index: lldb/source/Interpreter/CommandInterpreter.cpp
===================================================================
--- lldb/source/Interpreter/CommandInterpreter.cpp
+++ lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2997,6 +2997,7 @@
   if (size > 0) {
     stream.Printf("\n... Interrupted.\n");
   }
+  stream.Flush();
 }
 
 bool CommandInterpreter::EchoCommandNonInteractive(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120961.412902.patch
Type: text/x-patch
Size: 391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220304/dbebafbf/attachment.bin>


More information about the lldb-commits mailing list