[PATCH v2 17/20] plugins: add ability to register a GDB triggered callback