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