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/Commands/CommandObjectFrame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectFrame.cpp') diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 0ac8e92..eab0d02 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -265,8 +265,9 @@ protected: m_options.GenerateOptionUsage (result.GetErrorStream(), this); } } - - bool success = thread->SetSelectedFrameByIndex (frame_idx); + + const bool broadcast = true; + bool success = thread->SetSelectedFrameByIndex (frame_idx, broadcast); if (success) { exe_ctx.SetFrameSP(thread->GetSelectedFrame ()); -- cgit v1.1