diff options
author | Sean Callanan <scallanan@apple.com> | 2012-02-22 23:57:45 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-02-22 23:57:45 +0000 |
commit | 7277284f87dd195294355416d29ff3e6715d037a (patch) | |
tree | 0869c062a22cad4c17e2e98015b8beaa183bd598 /lldb/source/Core/ValueObjectDynamicValue.cpp | |
parent | 9646a472da57c03b44dd4286de571426117395fa (diff) | |
download | bcm5719-llvm-7277284f87dd195294355416d29ff3e6715d037a.tar.gz bcm5719-llvm-7277284f87dd195294355416d29ff3e6715d037a.zip |
Added support for looking up the complete type for
Objective-C classes. This allows LLDB to find
ivars declared in class extensions in modules other
than where the debugger is currently stopped (we
already supported this when the debugger was
stopped in the same module as the definition).
This involved the following main changes:
- The ObjCLanguageRuntime now knows how to hunt
for the authoritative version of an Objective-C
type. It looks for the symbol indicating a
definition, and then gets the type from the
module containing that symbol.
- ValueObjects now report their type with a
potential override, and the override is set if
the type of the ValueObject is an Objective-C
class or pointer type that is defined somewhere
other than the original reported type. This
means that "frame variable" will always use the
complete type if one is available.
- The ClangASTSource now looks for the complete
type when looking for ivars. This means that
"expr" will always use the complete type if one
is available.
- I added a testcase that verifies that both
"frame variable" and "expr" work.
llvm-svn: 151214
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index e608ce9bb70..b336a7fa274 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -61,7 +61,7 @@ ValueObjectCast::~ValueObjectCast() } lldb::clang_type_t -ValueObjectCast::GetClangType () +ValueObjectCast::GetClangTypeImpl () { return m_cast_type.GetOpaqueQualType(); } @@ -79,7 +79,7 @@ ValueObjectCast::CalculateNumChildren() } clang::ASTContext * -ValueObjectCast::GetClangAST () +ValueObjectCast::GetClangASTImpl () { return m_cast_type.GetASTContext(); } @@ -159,7 +159,7 @@ ValueObjectDynamicValue::~ValueObjectDynamicValue() } lldb::clang_type_t -ValueObjectDynamicValue::GetClangType () +ValueObjectDynamicValue::GetClangTypeImpl () { if (m_type_sp) return m_value.GetClangType(); @@ -188,7 +188,7 @@ ValueObjectDynamicValue::CalculateNumChildren() } clang::ASTContext * -ValueObjectDynamicValue::GetClangAST () +ValueObjectDynamicValue::GetClangASTImpl () { const bool success = UpdateValueIfNeeded(false); if (success && m_type_sp) |