diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-11-02 02:23:02 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-11-02 02:23:02 +0000 |
commit | f23bf7432cfe632976bf9004707cf8133f30e3e1 (patch) | |
tree | 7c999f09d60866c9bea2a4dd8bc1caaa165d1877 /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 30bfa3623b6ec59fc03cba486040eef77cd5f847 (diff) | |
download | llvm-f23bf7432cfe632976bf9004707cf8133f30e3e1.zip llvm-f23bf7432cfe632976bf9004707cf8133f30e3e1.tar.gz llvm-f23bf7432cfe632976bf9004707cf8133f30e3e1.tar.bz2 |
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.
<rdar://problem/15314068>
llvm-svn: 193907
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 2e852d0..a380692 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -42,7 +42,7 @@ #include "lldb/Symbol/Variable.h" #include "lldb/Symbol/VariableList.h" #include "lldb/Target/Process.h" -#include "lldb/Target/StackFrame.h" +#include "lldb/Target/Frame.h" #include "lldb/Target/Thread.h" #include "lldb/Target/Target.h" @@ -378,7 +378,7 @@ protected: DoExecute (Args& command, CommandReturnObject &result) { // No need to check "frame" for validity as eFlagRequiresFrame ensures it is valid - StackFrame *frame = m_exe_ctx.GetFramePtr(); + Frame *frame = m_exe_ctx.GetFramePtr(); Stream &s = result.GetOutputStream(); @@ -470,8 +470,8 @@ protected: else // No regex, either exact variable names or variable expressions. { Error error; - uint32_t expr_path_options = StackFrame::eExpressionPathOptionCheckPtrVsMember | - StackFrame::eExpressionPathOptionsAllowDirectIVarAccess; + uint32_t expr_path_options = Frame::eExpressionPathOptionCheckPtrVsMember | + Frame::eExpressionPathOptionsAllowDirectIVarAccess; lldb::VariableSP var_sp; valobj_sp = frame->GetValueForVariableExpressionPath (name_cstr, m_varobj_options.use_dynamic, |