[Lldb-commits] [lldb] r269434 - Disable HostThread::Cancel assertion on FreeBSD
Ed Maste via lldb-commits
lldb-commits at lists.llvm.org
Fri May 13 10:01:59 PDT 2016
Author: emaste
Date: Fri May 13 12:01:59 2016
New Revision: 269434
URL: http://llvm.org/viewvc/llvm-project?rev=269434&view=rev
Log:
Disable HostThread::Cancel assertion on FreeBSD
It is still used by ProcessMonitor::StopMonitoringChildProcess and
ProcessMonitor::StopOpThread.
Modified:
lldb/trunk/source/Host/posix/HostThreadPosix.cpp
Modified: lldb/trunk/source/Host/posix/HostThreadPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostThreadPosix.cpp?rev=269434&r1=269433&r2=269434&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/HostThreadPosix.cpp (original)
+++ lldb/trunk/source/Host/posix/HostThreadPosix.cpp Fri May 13 12:01:59 2016
@@ -56,7 +56,9 @@ HostThreadPosix::Cancel()
if (IsJoinable())
{
#ifndef __ANDROID__
+#ifndef __FreeBSD__
assert(false && "someone is calling HostThread::Cancel()");
+#endif
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
#else
More information about the lldb-commits
mailing list