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

Enrico Granata egranata at apple.com
Tue Sep 18 11:15:27 PDT 2012


Author: enrico
Date: Tue Sep 18 13:15:27 2012
New Revision: 164151

URL: http://llvm.org/viewvc/llvm-project?rev=164151&view=rev
Log:
Fix a potential issue where data formatters can get confused over malformed UUIDs

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=164151&r1=164150&r2=164151&view=diff
==============================================================================
--- lldb/trunk/examples/summaries/cocoa/objc_runtime.py (original)
+++ lldb/trunk/examples/summaries/cocoa/objc_runtime.py Tue Sep 18 13:15:27 2012
@@ -75,7 +75,10 @@
 		logger = lldb.formatters.Logger.Logger()
 		# assume the only thing that has a Foundation.framework is a Mac
 		# assume anything < Lion does not even exist
-		mod = target.module['Foundation']
+		try:
+			mod = target.module['Foundation']
+		except:
+			mod = None
 		if mod is None or mod.IsValid() == 0:
 			return None
 		ver = mod.GetVersion()





More information about the lldb-commits mailing list