mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
15 lines
384 B
OpenEdge ABL
15 lines
384 B
OpenEdge ABL
|
|
%extend lldb::SBThreadCollection {
|
||
|
|
#ifdef SWIGPYTHON
|
||
|
|
%pythoncode%{
|
||
|
|
|
||
|
|
def __iter__(self):
|
||
|
|
'''Iterate over all threads in a lldb.SBThreadCollection object.'''
|
||
|
|
return lldb_iter(self, 'GetSize', 'GetThreadAtIndex')
|
||
|
|
|
||
|
|
def __len__(self):
|
||
|
|
'''Return the number of threads in a lldb.SBThreadCollection object.'''
|
||
|
|
return self.GetSize()
|
||
|
|
%}
|
||
|
|
#endif
|
||
|
|
}
|