(no commit message)

llvm-svn: 214319
This commit is contained in:
Greg Clayton
2014-07-30 17:38:47 +00:00
parent a12e023c8a
commit 06357c930c
13 changed files with 159 additions and 129 deletions

View File

@@ -3141,7 +3141,16 @@ CommandInterpreter::RunCommandInterpreter(bool auto_handle_events,
bool spawn_thread)
{
const bool multiple_lines = false; // Only get one line at a time
if (!m_command_io_handler_sp)
if (m_command_io_handler_sp)
{
// Copy the current debugger file handles in case they changed.
m_command_io_handler_sp->GetInputStreamFile() = m_debugger.GetInputFile();
m_command_io_handler_sp->GetOutputStreamFile() = m_debugger.GetOutputFile();
m_command_io_handler_sp->GetErrorStreamFile() = m_debugger.GetErrorFile();
m_command_io_handler_sp->SetIsDone(false);
}
else
{
m_command_io_handler_sp.reset(new IOHandlerEditline (m_debugger,
m_debugger.GetInputFile(),
m_debugger.GetOutputFile(),
@@ -3152,6 +3161,8 @@ CommandInterpreter::RunCommandInterpreter(bool auto_handle_events,
multiple_lines,
0, // Don't show line numbers
*this));
}
m_debugger.PushIOHandler(m_command_io_handler_sp);
if (auto_handle_events)