From 7341691502da22b268f2908fde59622c83c29f18 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 26 Mar 2018 17:40:44 +0000 Subject: [PATCH] Fix check for verbose logging. Thanks to Pavel for pointing this out! llvm-svn: 328557 --- .../ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 8bcbba03a25e..290ac226fd0d 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1440,8 +1440,7 @@ uint32_t AppleObjCRuntimeV2::ParseClassInfoArray(const DataExtractor &data, // uint32_t hash; // } __attribute__((__packed__)); - Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES - | LLDB_LOG_OPTION_VERBOSE)); + Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES)); uint32_t num_parsed = 0; // Iterate through all ClassInfo structures @@ -1450,7 +1449,7 @@ uint32_t AppleObjCRuntimeV2::ParseClassInfoArray(const DataExtractor &data, ObjCISA isa = data.GetPointer(&offset); if (isa == 0) { - if (log) + if (log && log->GetVerbose()) log->Printf( "AppleObjCRuntimeV2 found NULL isa, ignoring this class info"); continue;