aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-03-03 19:22:30 -0800
committerZequan Wu <zequanwu@google.com>2022-03-04 13:06:15 -0800
commitb31a1b4746c7c806bcc550e877577ec66ea407d9 (patch)
tree494ff17a9035acfd9fa267b69d611a8e46ec5931 /lldb/source/Interpreter/CommandInterpreter.cpp
parentdba73135c8b7a02afb535328a7475e0a6890c271 (diff)
downloadllvm-b31a1b4746c7c806bcc550e877577ec66ea407d9.zip
llvm-b31a1b4746c7c806bcc550e877577ec66ea407d9.tar.gz
llvm-b31a1b4746c7c806bcc550e877577ec66ea407d9.tar.bz2
[LLDB] Flush stream at the end of PrintCommandOutput
On Windows, lldb doesn't print any error message until exit. This fixes it. Differential Revision: https://reviews.llvm.org/D120961
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 8676371..edf4f59 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2997,6 +2997,7 @@ void CommandInterpreter::PrintCommandOutput(Stream &stream,
if (size > 0) {
stream.Printf("\n... Interrupted.\n");
}
+ stream.Flush();
}
bool CommandInterpreter::EchoCommandNonInteractive(