1 %extend lldb::SBUnixSignals { 2 #ifdef SWIGPYTHON 3 %pythoncode %{ 4 def __iter__(self): 5 '''Iterate over all signals in a lldb.SBUnixSignals object.''' 6 return lldb_iter(self, 'GetNumSignals', 'GetSignalAtIndex') 7 8 def __len__(self): 9 return self.GetNumSignals() 10 11 def get_unix_signals_list(self): 12 signals = [] 13 for idx in range(0, self.GetNumSignals()): 14 signals.append(self.GetSignalAtIndex(sig)) 15 return signals 16 17 threads = property(get_unix_signals_list, None, doc='''A read only property that returns a list() of valid signal numbers for this platform.''') 18 %} 19 #endif 20 } 21