forked from OSchip/llvm-project
In the case where we are trying to resume a thread all the way to 0, if we get
llvm-svn: 137287
This commit is contained in:
parent
9019fd3813
commit
478235d882
|
@ -119,7 +119,6 @@ MachThread::SetSuspendCountBeforeResume(bool others_stopped)
|
|||
times_to_resume = m_basic_info.suspend_count;
|
||||
else
|
||||
times_to_resume = 0;
|
||||
return false; // ???
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +160,10 @@ MachThread::RestoreSuspendCountAfterStop ()
|
|||
if (err.Success())
|
||||
++m_suspend_count;
|
||||
if (DNBLogCheckLogBit(LOG_THREAD) || err.Fail())
|
||||
{
|
||||
err.LogThreaded("::thread_suspend (%4.4x)", m_tid);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue