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:
Greg Clayton 2014-02-11 19:11:11 +00:00
parent 987b850cf2
commit b6892508a6
2 changed files with 7 additions and 15 deletions

View File

@ -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();
}

View File

@ -78,9 +78,6 @@ protected:
//------------------------------------------------------------------
// IOHandler::Delegate functions
//------------------------------------------------------------------
virtual void
IOHandlerActivated (IOHandler &io_handler);
virtual void
IOHandlerInputComplete (IOHandler &io_handler,
std::string &line);