xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBUnixSignalsExtensions.i (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1 %extend lldb::SBUnixSignals {
2 #ifdef SWIGPYTHON
3     %pythoncode %{
4         def get_unix_signals_list(self):
5             signals = []
6             for idx in range(0, self.GetNumSignals()):
7                 signals.append(self.GetSignalAtIndex(sig))
8             return signals
9 
10         threads = property(get_unix_signals_list, None, doc='''A read only property that returns a list() of valid signal numbers for this platform.''')
11     %}
12 #endif
13 }
14