Author: adrian
Date: Mon Mar 26 10:40:44 2018
New Revision: 328557
URL: http://llvm.org/viewvc/llvm-project?rev=328557&view=rev
Log:
Fix check for verbose logging.
Thanks to Pavel for pointing this out!
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp?rev=328557&r1=328556&r2=328557&view=diff
==============================================================================
---
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
(original)
+++
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
Mon Mar 26 10:40:44 2018
@@ -1440,8 +1440,7 @@ uint32_t AppleObjCRuntimeV2::ParseClassI
// 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::ParseClassI
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;
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits