summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
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;
OpenPOWER on IntegriCloud