From c0debe85666eb2565bacc4b6f345d2c41ce19f65 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 11 May 2012 00:27:51 +0000 Subject: 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 --- lldb/tools/driver/Driver.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lldb/tools/driver/Driver.cpp') diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index e8d25b19684..18fb4cd9f59 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -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"); -- cgit v1.2.1