forked from OSchip/llvm-project
When a multiline expression produces output, the multi-line help message is printed twice.
<rdar://problem/16031890> llvm-svn: 201171
This commit is contained in:
parent
987b850cf2
commit
b6892508a6
|
@ -364,18 +364,6 @@ CommandObjectExpression::EvaluateExpression
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
CommandObjectExpression::IOHandlerActivated (IOHandler &io_handler)
|
||||
{
|
||||
StreamFileSP output_sp(io_handler.GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
{
|
||||
output_sp->PutCString("Enter expressions, then terminate with an empty line to evaluate:\n");
|
||||
output_sp->Flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
CommandObjectExpression::IOHandlerInputComplete (IOHandler &io_handler, std::string &line)
|
||||
{
|
||||
|
@ -441,6 +429,13 @@ CommandObjectExpression::DoExecute
|
|||
NULL, // No prompt
|
||||
multiple_lines,
|
||||
*this));
|
||||
|
||||
StreamFileSP output_sp(io_handler_sp->GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
{
|
||||
output_sp->PutCString("Enter expressions, then terminate with an empty line to evaluate:\n");
|
||||
output_sp->Flush();
|
||||
}
|
||||
debugger.PushIOHandler(io_handler_sp);
|
||||
return result.Succeeded();
|
||||
}
|
||||
|
|
|
@ -78,9 +78,6 @@ protected:
|
|||
//------------------------------------------------------------------
|
||||
// IOHandler::Delegate functions
|
||||
//------------------------------------------------------------------
|
||||
virtual void
|
||||
IOHandlerActivated (IOHandler &io_handler);
|
||||
|
||||
virtual void
|
||||
IOHandlerInputComplete (IOHandler &io_handler,
|
||||
std::string &line);
|
||||
|
|
Loading…
Reference in New Issue