summaryrefslogtreecommitdiffstats
path: root/lldb/tools/driver/Driver.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-12-02 18:31:56 +0000
committerCaroline Tice <ctice@apple.com>2010-12-02 18:31:56 +0000
commit82305fc59a70f3b10b07235daa2601d08aebf0d3 (patch)
tree74952ab66af36d82fb8ee84274984fc97d055520 /lldb/tools/driver/Driver.cpp
parentc5cc2fb980f8ccd0c16b30148a6a7e8776136c23 (diff)
downloadbcm5719-llvm-82305fc59a70f3b10b07235daa2601d08aebf0d3.tar.gz
bcm5719-llvm-82305fc59a70f3b10b07235daa2601d08aebf0d3.zip
Add proper EOF handling to Communication & Connection classes:
Add bool member to Communication class indicating whether the Connection should be closed on receiving an EOF or not. Update the Connection read to return an EOF status when appropriate. Modify the Communication class to pass the EOF along or not, and to close the Connection or not, as appropriate. llvm-svn: 120723
Diffstat (limited to 'lldb/tools/driver/Driver.cpp')
-rw-r--r--lldb/tools/driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp
index 29b50f05a55..abd51a56644 100644
--- a/lldb/tools/driver/Driver.cpp
+++ b/lldb/tools/driver/Driver.cpp
@@ -1178,7 +1178,7 @@ Driver::MainLoop ()
// However, you don't need to do anything with the characters, since editline will dump these
// unconsumed characters after printing the prompt again in el_gets.
- SBCommunication master_out_comm("driver.editline");
+ SBCommunication master_out_comm("driver.editline", false);
master_out_comm.AdoptFileDesriptor(m_editline_pty.GetMasterFileDescriptor(), false);
master_out_comm.SetReadThreadBytesReceivedCallback(Driver::MasterThreadBytesReceived, this);
OpenPOWER on IntegriCloud