diff options
author | Greg Clayton <gclayton@apple.com> | 2012-05-11 00:27:51 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-05-11 00:27:51 +0000 |
commit | c0debe85666eb2565bacc4b6f345d2c41ce19f65 (patch) | |
tree | 6d5aad4b1f291852ab3a25fe55c41d50be1cbdea /lldb/tools/driver/Driver.cpp | |
parent | dfab443ae83958b5a6f0e052e6afbf4ae6d92999 (diff) | |
download | bcm5719-llvm-c0debe85666eb2565bacc4b6f345d2c41ce19f65.tar.gz bcm5719-llvm-c0debe85666eb2565bacc4b6f345d2c41ce19f65.zip |
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
Diffstat (limited to 'lldb/tools/driver/Driver.cpp')
-rw-r--r-- | lldb/tools/driver/Driver.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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"); |