libdebug.data.signal_catcher
SignalCatcher
dataclass
Catch a signal raised by the target process.
Attributes:
Name | Type | Description |
---|---|---|
signal_number |
int
|
The signal number to catch. |
callback |
Callable[[ThreadContext, CaughtSignal], None]
|
The callback defined by the user to execute when the signal is caught. |
recursive |
bool
|
Whether, when the signal is hijacked with another one, the signal catcher associated with the new signal should be considered as well. Defaults to False. |
enabled |
bool
|
Whether the signal will be caught or not. |
hit_count |
int
|
The number of times the signal has been caught. |
Source code in libdebug/data/signal_catcher.py
__hash__()
disable()
enable()
hit_on(thread_context)
Returns whether the signal catcher has been hit on the given thread context.