diff options
author | Caroline Tice <ctice@apple.com> | 2011-02-02 01:17:56 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2011-02-02 01:17:56 +0000 |
commit | 31f7d460fab75a107fe8f7cbcdfe77582362f1d2 (patch) | |
tree | 8e237bcf500ed877a2c885658fe8365db0158ef1 | |
parent | d07a57f2222a185715bd676e76d9351487c94ed5 (diff) | |
download | bcm5719-llvm-31f7d460fab75a107fe8f7cbcdfe77582362f1d2.tar.gz bcm5719-llvm-31f7d460fab75a107fe8f7cbcdfe77582362f1d2.zip |
Make sure the confirmation input reader calls fflush after writing its output.
(<rdar://problem/8946573>)
llvm-svn: 124711
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index a106b367b5f..e239c5596a0 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1117,7 +1117,10 @@ CommandInterpreter::GetConfirmationInputReaderCallback (void *baton, if (out_fh) { if (reader.GetPrompt()) + { ::fprintf (out_fh, "%s", reader.GetPrompt()); + ::fflush (out_fh); + } } break; @@ -1126,7 +1129,10 @@ CommandInterpreter::GetConfirmationInputReaderCallback (void *baton, case eInputReaderReactivate: if (out_fh && reader.GetPrompt()) + { ::fprintf (out_fh, "%s", reader.GetPrompt()); + ::fflush (out_fh); + } break; case eInputReaderGotToken: @@ -1150,6 +1156,7 @@ CommandInterpreter::GetConfirmationInputReaderCallback (void *baton, { ::fprintf (out_fh, "Please answer \"y\" or \"n\"\n"); ::fprintf (out_fh, "%s", reader.GetPrompt()); + ::fflush (out_fh); } } break; |