summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-04-03 04:18:47 +0000
committerJason Molenda <jmolenda@apple.com>2013-04-03 04:18:47 +0000
commitd5318c0c35354b22b9b676b9e2bc7076306a3d08 (patch)
treedec05fa440fc8f03ca7c1781c9532c87ebefa2c5 /lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
parentb00fc87608d9494f72d7e59054444bd24ba68966 (diff)
downloadbcm5719-llvm-d5318c0c35354b22b9b676b9e2bc7076306a3d08.tar.gz
bcm5719-llvm-d5318c0c35354b22b9b676b9e2bc7076306a3d08.zip
Fix another old usage of GetCurrentThread() to get a mach port
number in RNBRemote::HandlePacket_qProcessInfo -- add a new GetCurrentThreadMachPort() so callers who need to make a mach thred_get_state() call at the RNBRemote level will have a way to get the port number. llvm-svn: 178619
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachProcess.cpp')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
index de11cc8cecc..8176f10a1b4 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
@@ -186,6 +186,12 @@ MachProcess::GetCurrentThread ()
}
nub_thread_t
+MachProcess::GetCurrentThreadMachPort ()
+{
+ return m_thread_list.GetMachPortNumberByThreadID(m_thread_list.CurrentThreadID());
+}
+
+nub_thread_t
MachProcess::SetCurrentThread(nub_thread_t tid)
{
return m_thread_list.SetCurrentThread(tid);
OpenPOWER on IntegriCloud