Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp =================================================================== --- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -596,7 +596,7 @@ { auto iterators_pair = objc_runtime->GetDescriptorIteratorPair(); auto iterator = iterators_pair.first; - Stream &stdout(result.GetOutputStream()); + auto &out = result.GetOutputStream(); for(; iterator != iterators_pair.second; iterator++) { if (iterator->second) @@ -604,15 +604,15 @@ const char* class_name = iterator->second->GetClassName().AsCString(""); if (regex_up && class_name && !regex_up->Execute(class_name)) continue; - stdout.Printf("isa = 0x%" PRIx64, iterator->first); - stdout.Printf(" name = %s", class_name); - stdout.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize()); - stdout.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars()); + out.Printf("isa = 0x%" PRIx64, iterator->first); + out.Printf(" name = %s", class_name); + out.Printf(" instance size = %" PRIu64, iterator->second->GetInstanceSize()); + out.Printf(" num ivars = %" PRIuPTR, (uintptr_t)iterator->second->GetNumIVars()); if (auto superclass = iterator->second->GetSuperclass()) { - stdout.Printf(" superclass = %s", superclass->GetClassName().AsCString("")); + out.Printf(" superclass = %s", superclass->GetClassName().AsCString("")); } - stdout.Printf("\n"); + out.Printf("\n"); if (m_options.m_verbose) { for(size_t i = 0; @@ -620,23 +620,23 @@ i++) { auto ivar = iterator->second->GetIVarAtIndex(i); - stdout.Printf(" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n", + out.Printf(" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 "\n", ivar.m_name.AsCString(""), ivar.m_type.GetDisplayTypeName().AsCString(""), ivar.m_size, ivar.m_offset); } iterator->second->Describe(nullptr, - [objc_runtime, &stdout] (const char* name, const char* type) -> bool { - stdout.Printf(" instance method name = %s type = %s\n", - name, - type); + [objc_runtime, &out] (const char* name, const char* type) -> bool { + out.Printf(" instance method name = %s type = %s\n", + name, + type); return false; }, - [objc_runtime, &stdout] (const char* name, const char* type) -> bool { - stdout.Printf(" class method name = %s type = %s\n", - name, - type); + [objc_runtime, &out] (const char* name, const char* type) -> bool { + out.Printf(" class method name = %s type = %s\n", + name, + type); return false; }, nullptr); @@ -646,7 +646,7 @@ { if (regex_up && !regex_up->Execute("")) continue; - stdout.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first); + out.Printf("isa = 0x%" PRIx64 " has no associated class.\n", iterator->first); } } result.SetStatus(lldb::eReturnStatusSuccessFinishResult);