From 478235d882f5dbe279fc3731daca29493ec69f6b Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 11 Aug 2011 00:38:52 +0000 Subject: [PATCH] In the case where we are trying to resume a thread all the way to 0, if we get llvm-svn: 137287 --- lldb/tools/debugserver/source/MacOSX/MachThread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp index 19ffc69336eb..0944fdc0efcf 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp @@ -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;