diff options
author | Greg Clayton <gclayton@apple.com> | 2013-01-16 17:29:04 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-01-16 17:29:04 +0000 |
commit | 949e82216c5c15270e5931c4d213401f9f675f2d (patch) | |
tree | cbc68994eb303a3bf8cc1f3535ca02b89cbde476 /lldb/scripts/Python/interface | |
parent | a51c6ed608dc6372bd20eccc27d09064751e82d8 (diff) | |
download | bcm5719-llvm-949e82216c5c15270e5931c4d213401f9f675f2d.tar.gz bcm5719-llvm-949e82216c5c15270e5931c4d213401f9f675f2d.zip |
<rdar://problem/13009943>
Added a unique integer identifier to processes. Some systems, like JTAG or other simulators, might always assign the same process ID (pid) to the processes that are being debugged. In order for scripts and the APIs to uniquely identify the processes, there needs to be another ID. Now the SBProcess class has:
uint32_t SBProcess::GetUniqueID();
This integer ID will help to truly uniquely identify a process and help with appropriate caching that can be associated with a SBProcess object.
llvm-svn: 172628
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBProcess.i | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index a7ebb0a33c5..684d2aae0aa 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -186,8 +186,17 @@ public: const char * GetExitDescription (); + %feature("autodoc", " + Returns the process ID of the process. + ") GetProcessID; lldb::pid_t GetProcessID (); + + %feature("autodoc", " + Returns an integer ID that is guaranteed to be unique across all process instances. This is not the process ID, just a unique integer for comparison and caching purposes. + ") GetUniqueID; + uint32_t + GetUniqueID(); uint32_t GetAddressByteSize() const; |