Greg created a new API on SBProcess to get an ID that is guaranteed to be unique...
authorEnrico Granata <egranata@apple.com>
Wed, 16 Jan 2013 18:34:23 +0000 (18:34 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 16 Jan 2013 18:34:23 +0000 (18:34 +0000)
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.

llvm-svn: 172633

lldb/examples/summaries/cocoa/objc_runtime.py

index c48ecea..4f852ed 100644 (file)
@@ -594,7 +594,7 @@ class SystemParameters:
                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)