[CodeGenPrepare] Drop nsw flags in `optimizeLoadExt` (#118180)
[llvm-project.git] / lldb / bindings / interface / SBUnixSignalsExtensions.i
blob31c7351f1b5dc11e75bb8c4323c0409411d65c3f
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')
8 def __len__(self):
9 return self.GetNumSignals()
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
17 threads = property(get_unix_signals_list, None, doc='''A read only property that returns a list() of valid signal numbers for this platform.''')
19 #endif