From f23bf7432cfe632976bf9004707cf8133f30e3e1 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Sat, 2 Nov 2013 02:23:02 +0000 Subject: Add a new base class, Frame. It is a pure virtual function which defines a protocol that all subclasses will implement. StackFrame is currently the only subclass and the methods that Frame vends are nearly identical to StackFrame's old methods. Update all callers to use Frame*/Frame& instead of pointers to StackFrames. This is almost entirely a mechanical change that touches a lot of the code base so I'm committing it alone. No new functionality is added with this patch, no new subclasses of Frame exist yet. I'll probably need to tweak some of the separation, possibly moving some of StackFrame's methods up in to Frame, but this is a good starting point. llvm-svn: 193907 --- lldb/source/Target/ThreadPlanStepOut.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Target/ThreadPlanStepOut.cpp') diff --git a/lldb/source/Target/ThreadPlanStepOut.cpp b/lldb/source/Target/ThreadPlanStepOut.cpp index c5efb558152..6e45957c486 100644 --- a/lldb/source/Target/ThreadPlanStepOut.cpp +++ b/lldb/source/Target/ThreadPlanStepOut.cpp @@ -57,8 +57,8 @@ ThreadPlanStepOut::ThreadPlanStepOut { m_step_from_insn = m_thread.GetRegisterContext()->GetPC(0); - StackFrameSP return_frame_sp (m_thread.GetStackFrameAtIndex(frame_idx + 1)); - StackFrameSP immediate_return_from_sp (m_thread.GetStackFrameAtIndex (frame_idx)); + FrameSP return_frame_sp (m_thread.GetStackFrameAtIndex(frame_idx + 1)); + FrameSP immediate_return_from_sp (m_thread.GetStackFrameAtIndex (frame_idx)); if (!return_frame_sp || !immediate_return_from_sp) return; // we can't do anything here. ValidatePlan() will return false. @@ -401,7 +401,7 @@ ThreadPlanStepOut::QueueInlinedStepPlan (bool queue_now) // Now figure out the range of this inlined block, and set up a "step through range" // plan for that. If we've been provided with a context, then use the block in that // context. - StackFrameSP immediate_return_from_sp (m_thread.GetStackFrameAtIndex (0)); + FrameSP immediate_return_from_sp (m_thread.GetStackFrameAtIndex (0)); if (!immediate_return_from_sp) return false; -- cgit v1.2.3