diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-27 18:34:42 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-27 18:34:42 +0000 |
commit | 04a339a08493049a3e532bd1271fd8c97d0b095f (patch) | |
tree | cf73a88785ff50ab42b504544c9b3c80ecadbada /lldb/source/Commands/CommandObjectBreakpointCommand.cpp | |
parent | fbdeab911ac6a98205a260f093c4679beb0c63a2 (diff) | |
download | bcm5719-llvm-04a339a08493049a3e532bd1271fd8c97d0b095f.tar.gz bcm5719-llvm-04a339a08493049a3e532bd1271fd8c97d0b095f.zip |
Flush the prompts immediately in the breakpoint command input readers, to make
sure they come out at the correct times.
llvm-svn: 117470
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index a8def7995f4..e8bd399b131 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -435,6 +435,7 @@ CommandObjectBreakpointCommandAdd::GenerateBreakpointCommandCallback ::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 @@ CommandObjectBreakpointCommandAdd::GenerateBreakpointCommandCallback case eInputReaderReactivate: if (out_fh && reader.GetPrompt()) + { ::fprintf (out_fh, "%s", reader.GetPrompt()); + ::fflush (out_fh); + } break; case eInputReaderGotToken: @@ -458,7 +462,10 @@ CommandObjectBreakpointCommandAdd::GenerateBreakpointCommandCallback } } if (out_fh && !reader.IsDone() && reader.GetPrompt()) + { ::fprintf (out_fh, "%s", reader.GetPrompt()); + ::fflush (out_fh); + } break; case eInputReaderDone: |