From bdbda93f35167175b82e2a8897fefb841331bd81 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 20 Mar 2013 19:04:28 +0000 Subject: Cleanup to the ObjC runtime to remove the now useless ClassDescriptor_Invalid llvm-svn: 177558 --- lldb/source/DataFormatters/Cocoa.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/DataFormatters') diff --git a/lldb/source/DataFormatters/Cocoa.cpp b/lldb/source/DataFormatters/Cocoa.cpp index 2ae7ee09b0d..afc7fe21166 100644 --- a/lldb/source/DataFormatters/Cocoa.cpp +++ b/lldb/source/DataFormatters/Cocoa.cpp @@ -55,8 +55,9 @@ lldb_private::formatters::NSBundleSummaryProvider (ValueObject& valobj, Stream& if (!strcmp(class_name,"NSBundle")) { uint64_t offset = 5 * ptr_size; - ClangASTType type(valobj.GetClangAST(),valobj.GetClangType()); + ClangASTType type(valobj.GetClangAST(),ClangASTContext::GetBuiltInType_objc_id(valobj.GetClangAST())); ValueObjectSP text(valobj.GetSyntheticChildAtOffset(offset, type, true)); + valobj_addr = text->GetValueAsUnsigned(0); StreamString summary_stream; bool was_nsstring_ok = NSStringSummaryProvider(*text.get(), summary_stream); if (was_nsstring_ok && summary_stream.GetSize() > 0) -- cgit v1.2.3