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

Enrico Granata egranata at apple.com
Wed Jan 16 10:34:23 PST 2013


Author: enrico
Date: Wed Jan 16 12:34:23 2013
New Revision: 172633

URL: http://llvm.org/viewvc/llvm-project?rev=172633&view=rev
Log:
Greg created a new API on SBProcess to get an ID that is guaranteed to be unique even in situations where underlying platforms would actually duplicate or hardcode PIDs

The Python data formatters use a per-process cache that was previously keying off the PID. Moving that to be based on this new notion of unique ID.


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=172633&r1=172632&r2=172633&view=diff
==============================================================================
--- lldb/trunk/examples/summaries/cocoa/objc_runtime.py (original)
+++ lldb/trunk/examples/summaries/cocoa/objc_runtime.py Wed Jan 16 12:34:23 2013
@@ -594,7 +594,7 @@
 		global isa_caches
 
 		process = valobj.GetTarget().GetProcess()
-		self.pid = process.GetProcessID()
+		self.pid = process.GetUniqueID() # using the unique ID for added guarantees (<rdar://problem/13009943>)
 
 		if runtime_version.look_for_key(self.pid):
 			self.runtime_version = runtime_version.get_value(self.pid)





More information about the lldb-commits mailing list