mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
(no commit message)
llvm-svn: 214319
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user