summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-08-11 00:38:52 +0000
committerJim Ingham <jingham@apple.com>2011-08-11 00:38:52 +0000
commit478235d882f5dbe279fc3731daca29493ec69f6b (patch)
treed90968be38755c645f6b723e987c44ce33757d69 /lldb/tools/debugserver/source/MacOSX/MachThread.cpp
parent9019fd381333abcad418ed2c2e99a8060be6a6ba (diff)
downloadbcm5719-llvm-478235d882f5dbe279fc3731daca29493ec69f6b.tar.gz
bcm5719-llvm-478235d882f5dbe279fc3731daca29493ec69f6b.zip
In the case where we are trying to resume a thread all the way to 0, if we get
llvm-svn: 137287
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.cpp')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachThread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
index 19ffc69336e..0944fdc0efc 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;
OpenPOWER on IntegriCloud