Missing files for previous checkin that fixed: "script help (lldb.SBThread)" output stops after 2048 bytes are printed.

<rdar://problem/15942977>

llvm-svn: 200478
This commit is contained in:
Greg Clayton
2014-01-30 18:52:57 +00:00
parent dde2700cde
commit 590426029b
2 changed files with 12 additions and 0 deletions

View File

@@ -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.
///

View File

@@ -269,6 +269,16 @@ Communication::StopReadThread (Error *error_ptr)
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)