forked from OSchip/llvm-project
Flush the prompts immediately in the breakpoint command input readers, to make
sure they come out at the correct times. llvm-svn: 117470
This commit is contained in:
parent
fbdeab911a
commit
04a339a084
|
@ -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:
|
||||
|
|
|
@ -638,6 +638,7 @@ ScriptInterpreterPython::GenerateBreakpointOptionsCommandCallback
|
|||
::fprintf (out_fh, "%s\n", g_reader_instructions);
|
||||
if (reader.GetPrompt())
|
||||
::fprintf (out_fh, "%s", reader.GetPrompt());
|
||||
::fflush (out_fh);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -647,7 +648,10 @@ ScriptInterpreterPython::GenerateBreakpointOptionsCommandCallback
|
|||
|
||||
case eInputReaderReactivate:
|
||||
if (reader.GetPrompt() && out_fh)
|
||||
{
|
||||
::fprintf (out_fh, "%s", reader.GetPrompt());
|
||||
::fflush (out_fh);
|
||||
}
|
||||
break;
|
||||
|
||||
case eInputReaderGotToken:
|
||||
|
@ -655,7 +659,10 @@ ScriptInterpreterPython::GenerateBreakpointOptionsCommandCallback
|
|||
std::string temp_string (bytes, bytes_len);
|
||||
commands_in_progress.AppendString (temp_string.c_str());
|
||||
if (out_fh && !reader.IsDone() && reader.GetPrompt())
|
||||
{
|
||||
::fprintf (out_fh, "%s", reader.GetPrompt());
|
||||
::fflush (out_fh);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue