Flush the prompts immediately in the breakpoint command input readers, to make 
sure they come out at the correct times.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117470 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectBreakpointCommand.cpp b/source/Commands/CommandObjectBreakpointCommand.cpp
index a8def79..e8bd399 100644
--- a/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -435,6 +435,7 @@
             ::fprintf (out_fh, "%s\n", g_reader_instructions);
             if (reader.GetPrompt())
                 ::fprintf (out_fh, "%s", reader.GetPrompt());
+            ::fflush (out_fh);
         }
         break;
 
@@ -443,7 +444,10 @@
 
     case eInputReaderReactivate:
         if (out_fh && reader.GetPrompt())
+        {
             ::fprintf (out_fh, "%s", reader.GetPrompt());
+            ::fflush (out_fh);
+        }
         break;
 
     case eInputReaderGotToken:
@@ -458,7 +462,10 @@
             }
         }
         if (out_fh && !reader.IsDone() && reader.GetPrompt())
+        {
             ::fprintf (out_fh, "%s", reader.GetPrompt());
+            ::fflush (out_fh);
+        }
         break;
         
     case eInputReaderDone: