gdbinit/onyx-the-black-cat — pull request #1 by Tyilo (2013-07-14 00:14:37+00:00)
Title: Add state support for avoiding patching twice etc.

This makes the onyx kext remember which functions it has patched in an array and the controller can now only toggle the state.

It couldn't figure out how to make the kext send the patching states back to the controller, but if you could figure it out, the controller output would probably be better, eg. line 136 of main.c:
```
printf("[%x] [%s] %s\n", i + 1, "toggle" /*get_state(i)? "disable": "enable"*/, fun_names[i]);
```