forked from OSchip/llvm-project
Don't intercept the quit command and override what is was doing. This was causing the "lldb" command line to deadlock when the quit command was executed sometimes.
llvm-svn: 156595
This commit is contained in:
parent
dfab443ae8
commit
c0debe8566
|
@ -1106,14 +1106,6 @@ Driver::EditLineInputReaderCallback
|
|||
return bytes_len;
|
||||
}
|
||||
|
||||
// Intercept when the quit command is called and tell our driver that it is done
|
||||
static bool
|
||||
QuitCommandOverrideCallback (void *baton, const char **argv)
|
||||
{
|
||||
((Driver *)baton)->SetIsDone();
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
Driver::MainLoop ()
|
||||
{
|
||||
|
@ -1216,10 +1208,6 @@ Driver::MainLoop ()
|
|||
|
||||
SBCommandInterpreter sb_interpreter = m_debugger.GetCommandInterpreter();
|
||||
|
||||
// Intercept when the quit command is called and tell our driver that it is done
|
||||
bool quit_success = sb_interpreter.SetCommandOverrideCallback ("quit", QuitCommandOverrideCallback, this);
|
||||
assert (quit_success);
|
||||
|
||||
m_io_channel_ap.reset (new IOChannel(m_editline_slave_fh, editline_output_slave_fh, stdout, stderr, this));
|
||||
|
||||
SBCommunication out_comm_2("driver.editline_output");
|
||||
|
|
Loading…
Reference in New Issue