Function

GumExceptorset_mode

Declaration [src]

void
gum_exceptor_set_mode (
  GumExceptorMode mode
)

Description [src]

Configures how the exceptor handles exceptions:

  • GUM_EXCEPTOR_MODE_FULL: install signal handlers and hook signal()/sigaction() so the target cannot override them (default).
  • GUM_EXCEPTOR_MODE_HANDLER_ONLY: install signal handlers but leave signal()/sigaction() alone, so the target is free to replace them.
  • GUM_EXCEPTOR_MODE_OFF: don’t install anything.

The signal()/sigaction() distinction is only meaningful on POSIX backends. Must be called before the first gum_exceptor_obtain(), as the backend is created on first obtain.

Parameters

mode

Type: GumExceptorMode

The desired exceptor mode.