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/Core/Debugger.cpp | |
parent | 30bfa3623b6ec59fc03cba486040eef77cd5f847 (diff) | |
download | bcm5719-llvm-f23bf7432cfe632976bf9004707cf8133f30e3e1.tar.gz bcm5719-llvm-f23bf7432cfe632976bf9004707cf8133f30e3e1.zip |
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/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 3941d82d47b..ea947a63407 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1137,7 +1137,7 @@ Debugger::FindDebuggerWithID (lldb::user_id_t id) } static void -TestPromptFormats (StackFrame *frame) +TestPromptFormats (Frame *frame) { if (frame == NULL) return; @@ -1359,7 +1359,7 @@ static bool RunScriptFormatKeyword(Stream &s, ScriptInterpreter *script_interpre static ValueObjectSP ExpandIndexedExpression (ValueObject* valobj, size_t index, - StackFrame* frame, + Frame* frame, bool deref_pointer) { Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TYPES)); @@ -2112,7 +2112,7 @@ FormatPromptRecurse { if (exe_ctx) { - StackFrame *frame = exe_ctx->GetFramePtr(); + Frame *frame = exe_ctx->GetFramePtr(); if (frame) { var_name_begin += ::strlen ("frame."); @@ -2338,7 +2338,7 @@ FormatPromptRecurse } else if (IsToken (var_name_begin, "pc-offset}")) { - StackFrame *frame = exe_ctx->GetFramePtr(); + Frame *frame = exe_ctx->GetFramePtr(); var_success = frame != NULL; if (var_success) { @@ -2397,7 +2397,7 @@ FormatPromptRecurse // If format addr is valid, then we need to print an address if (reg_num != LLDB_INVALID_REGNUM) { - StackFrame *frame = exe_ctx->GetFramePtr(); + Frame *frame = exe_ctx->GetFramePtr(); // We have a register value to display... if (reg_num == LLDB_REGNUM_GENERIC_PC && reg_kind == eRegisterKindGeneric) { |