xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBUnixSignalsExtensions.i (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
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