aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-10 18:32:14 +0000
committerJim Ingham <jingham@apple.com>2012-10-10 18:32:14 +0000
commit4f465cff8a1591a821d13c7fb34bfc56c1d1d96f (patch)
treeefe067b447ee152883e2235bf3a95c23544d07c4 /lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
parent9a6717f647653eef94344f9d31239a1128998fa3 (diff)
downloadllvm-4f465cff8a1591a821d13c7fb34bfc56c1d1d96f.zip
llvm-4f465cff8a1591a821d13c7fb34bfc56c1d1d96f.tar.gz
llvm-4f465cff8a1591a821d13c7fb34bfc56c1d1d96f.tar.bz2
Change the Thread constructor over to take a Process& rather than a ProcessSP. We can't create Threads with a NULL ProcessSP, so it makes no sense to use the SP.
Then make the Thread a Broadcaster, and get it to broadcast when the selected frame is changed (but only from the Command Line) and when Thread::ReturnFromFrame changes the stack. Made the Driver use this notification to print the new thread status rather than doing it in the command. Fixed a few places where people were setting their broadcaster class by hand rather than using the static broadcaster class call. <rdar://problem/12383087> llvm-svn: 165640
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
index 150c314..567658d 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
@@ -37,8 +37,8 @@ using namespace lldb_private;
// Thread Registers
//----------------------------------------------------------------------
-ThreadKDP::ThreadKDP (const lldb::ProcessSP &process_sp, lldb::tid_t tid) :
- Thread(process_sp, tid),
+ThreadKDP::ThreadKDP (Process &process, lldb::tid_t tid) :
+ Thread(process, tid),
m_thread_name (),
m_dispatch_queue_name (),
m_thread_dispatch_qaddr (LLDB_INVALID_ADDRESS)