[Lldb-commits] [lldb] r151388 - /lldb/trunk/examples/summaries/cocoa/objc_runtime.py

Enrico Granata egranata at apple.com
Fri Feb 24 11:46:04 PST 2012


Author: enrico
Date: Fri Feb 24 13:46:04 2012
New Revision: 151388

URL: http://llvm.org/viewvc/llvm-project?rev=151388&view=rev
Log:
Fixing an if condition which was causing issues in detecting the correct runtime version

Modified:
    lldb/trunk/examples/summaries/cocoa/objc_runtime.py

Modified: lldb/trunk/examples/summaries/cocoa/objc_runtime.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/cocoa/objc_runtime.py?rev=151388&r1=151387&r2=151388&view=diff
==============================================================================
--- lldb/trunk/examples/summaries/cocoa/objc_runtime.py (original)
+++ lldb/trunk/examples/summaries/cocoa/objc_runtime.py Fri Feb 24 13:46:04 2012
@@ -434,7 +434,7 @@
 		self.uint32_t = valobj.GetType().GetBasicType(lldb.eBasicTypeUnsignedInt)
 		global runtime_version
 		pid = self.process.GetProcessID()
-		if runtime_version.look_for_key(pid) == None:
+		if runtime_version.look_for_key(pid):
 			self.runtime_version = runtime_version.get_value(pid)
 		else:
 			self.runtime_version = ObjCRuntime.runtime_version(self.process)





More information about the lldb-commits mailing list