[Lldb-commits] [lldb] r156595 - /lldb/trunk/tools/driver/Driver.cpp

Greg Clayton gclayton at apple.com
Thu May 10 17:27:51 PDT 2012


Author: gclayton
Date: Thu May 10 19:27:51 2012
New Revision: 156595

URL: http://llvm.org/viewvc/llvm-project?rev=156595&view=rev
Log:
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.


Modified:
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=156595&r1=156594&r2=156595&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Thu May 10 19:27:51 2012
@@ -1106,14 +1106,6 @@
     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 @@
 
     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");





More information about the lldb-commits mailing list