From 4f465cff8a1591a821d13c7fb34bfc56c1d1d96f Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 10 Oct 2012 18:32:14 +0000 Subject: 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. llvm-svn: 165640 --- .../OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/OperatingSystem/Darwin-Kernel') diff --git a/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp b/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp index b1e68302d11..93e69336c7f 100644 --- a/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp +++ b/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp @@ -249,7 +249,7 @@ OperatingSystemDarwinKernel::UpdateThreadList (ThreadList &old_thread_list, Thre ThreadSP thread_sp (old_thread_list.FindThreadByID (tid, false)); if (!thread_sp) - thread_sp.reset (new ThreadMemory (m_process->shared_from_this(), tid, valobj_sp)); + thread_sp.reset (new ThreadMemory (*m_process, tid, valobj_sp)); new_thread_list.AddThread(thread_sp); -- cgit v1.2.3