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 --- lldb/source/Plugins/Process/Utility/ThreadMemory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/Process/Utility/ThreadMemory.cpp') diff --git a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp index 10c3a906111..9e4c6d60733 100644 --- a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp +++ b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp @@ -17,10 +17,10 @@ using namespace lldb; using namespace lldb_private; -ThreadMemory::ThreadMemory (const ProcessSP &process_sp, +ThreadMemory::ThreadMemory (Process &process, tid_t tid, const ValueObjectSP &thread_info_valobj_sp) : - Thread (process_sp, tid), + Thread (process, tid), m_thread_info_valobj_sp (thread_info_valobj_sp), m_name(), m_queue() @@ -28,11 +28,11 @@ ThreadMemory::ThreadMemory (const ProcessSP &process_sp, } -ThreadMemory::ThreadMemory (const lldb::ProcessSP &process_sp, +ThreadMemory::ThreadMemory (Process &process, lldb::tid_t tid, const char *name, const char *queue) : - Thread (process_sp, tid), + Thread (process, tid), m_thread_info_valobj_sp (), m_name(), m_queue() -- cgit v1.2.3