diff options
author | Greg Clayton <gclayton@apple.com> | 2012-07-14 00:53:55 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-07-14 00:53:55 +0000 |
commit | 685c88c5a8d86d10b0b9077a76b22815ce092f27 (patch) | |
tree | e341c3c30fdde248b865150b22362e488e44212c /lldb/source/Core/Debugger.cpp | |
parent | c22e8d11929a3107c11ddf368078238cfd6a4416 (diff) | |
download | bcm5719-llvm-685c88c5a8d86d10b0b9077a76b22815ce092f27.tar.gz bcm5719-llvm-685c88c5a8d86d10b0b9077a76b22815ce092f27.zip |
<rdar://problem/11870357>
Allow "frame variable" to find ivars without the need for "this->" or "self->".
llvm-svn: 160211
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index a25b789f1d4..3e3b0cb1aea 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -987,48 +987,6 @@ ScanBracketedRange (const char* var_name_begin, return true; } - -static ValueObjectSP -ExpandExpressionPath (ValueObject* valobj, - StackFrame* frame, - bool* do_deref_pointer, - const char* var_name_begin, - const char* var_name_final, - Error& error) -{ - LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TYPES)); - StreamString sstring; - VariableSP var_sp; - - if (*do_deref_pointer) - { - if (log) - log->Printf("been told to deref_pointer by caller"); - sstring.PutChar('*'); - } - else if (valobj->IsDereferenceOfParent() && ClangASTContext::IsPointerType(valobj->GetParent()->GetClangType()) && !valobj->IsArrayItemForPointer()) - { - if (log) - log->Printf("decided to deref_pointer myself"); - sstring.PutChar('*'); - *do_deref_pointer = true; - } - - valobj->GetExpressionPath(sstring, true, ValueObject::eGetExpressionPathFormatHonorPointers); - if (log) - log->Printf("expression path to expand in phase 0: %s",sstring.GetData()); - sstring.PutRawBytes(var_name_begin+3, var_name_final-var_name_begin-3); - if (log) - log->Printf("expression path to expand in phase 1: %s",sstring.GetData()); - std::string name = std::string(sstring.GetData()); - ValueObjectSP target = frame->GetValueForVariableExpressionPath (name.c_str(), - eNoDynamicValues, - 0, - var_sp, - error); - return target; -} - static ValueObjectSP ExpandIndexedExpression (ValueObject* valobj, uint32_t index, |