blob: 42999846ef6a52fc41f7aba3e186d6ce7f91f87f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
%extend lldb::SBProcessInfoList {
#ifdef SWIGPYTHON
%pythoncode%{
def __len__(self):
'''Return the number of process info in a lldb.SBProcessInfoListExtensions object.'''
return self.GetSize()
def __iter__(self):
'''Iterate over all the process info in a lldb.SBProcessInfoListExtensions object.'''
return lldb_iter(self, 'GetSize', 'GetProcessInfoAtIndex')
%}
#endif
}
|