diff options
author | Zequan Wu <zequanwu@google.com> | 2022-03-03 19:22:30 -0800 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2022-03-04 13:06:15 -0800 |
commit | b31a1b4746c7c806bcc550e877577ec66ea407d9 (patch) | |
tree | 494ff17a9035acfd9fa267b69d611a8e46ec5931 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | dba73135c8b7a02afb535328a7475e0a6890c271 (diff) | |
download | llvm-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.cpp | 1 |
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( |