[Lldb-commits] [lldb] r200478 - Missing files for previous checkin that fixed: "script help (lldb.SBThread)" output stops after 2048 bytes are printed.

Greg Clayton gclayton at apple.com
Thu Jan 30 10:52:58 PST 2014


Author: gclayton
Date: Thu Jan 30 12:52:57 2014
New Revision: 200478

URL: http://llvm.org/viewvc/llvm-project?rev=200478&view=rev
Log:
Missing files for previous checkin that fixed: "script help (lldb.SBThread)" output stops after 2048 bytes are printed.

<rdar://problem/15942977>

Modified:
    lldb/trunk/include/lldb/Core/Communication.h
    lldb/trunk/source/Core/Communication.cpp

Modified: lldb/trunk/include/lldb/Core/Communication.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/Communication.h?rev=200478&r1=200477&r2=200478&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/Communication.h (original)
+++ lldb/trunk/include/lldb/Core/Communication.h Thu Jan 30 12:52:57 2014
@@ -286,6 +286,8 @@ public:
     virtual bool
     StopReadThread (Error *error_ptr = NULL);
 
+    virtual bool
+    JoinReadThread (Error *error_ptr = NULL);
     //------------------------------------------------------------------
     /// Checks if there is a currently running read thread.
     ///

Modified: lldb/trunk/source/Core/Communication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Communication.cpp?rev=200478&r1=200477&r2=200478&view=diff
==============================================================================
--- lldb/trunk/source/Core/Communication.cpp (original)
+++ lldb/trunk/source/Core/Communication.cpp Thu Jan 30 12:52:57 2014
@@ -269,6 +269,16 @@ Communication::StopReadThread (Error *er
     return status;
 }
 
+bool
+Communication::JoinReadThread (Error *error_ptr)
+{
+    if (!IS_VALID_LLDB_HOST_THREAD(m_read_thread))
+        return true;
+
+    bool success = Host::ThreadJoin (m_read_thread, NULL, error_ptr);
+    m_read_thread = LLDB_INVALID_HOST_THREAD;
+    return success;
+}
 
 size_t
 Communication::GetCachedBytes (void *dst, size_t dst_len)





More information about the lldb-commits mailing list