From b5d9d630d87263766f71bcd3c3d9000b4dff4107 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 16 Jan 2013 18:34:23 +0000 Subject: [PATCH] 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. llvm-svn: 172633 --- lldb/examples/summaries/cocoa/objc_runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/examples/summaries/cocoa/objc_runtime.py b/lldb/examples/summaries/cocoa/objc_runtime.py index c48ecea..4f852ed 100644 --- a/lldb/examples/summaries/cocoa/objc_runtime.py +++ b/lldb/examples/summaries/cocoa/objc_runtime.py @@ -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 () if runtime_version.look_for_key(self.pid): self.runtime_version = runtime_version.get_value(self.pid) -- 2.7.4