The patch fixes some wrong moments for GDB plugin loading/unloading. The problems are:
- If the plugin was loaded and we do unload + load, then memory leaks will happens (GdbLauncher objects).
- If the plugin was loaded and we do unload, then we still will see it's config page in the launcher configuration.
- If we do unload + load for some plugin with IExecutePlugin extension, then the GDB plugin will not create new GdbLauncher objects.
The new version fixes all this issues.
After review this approach should be also applied to LLDB plugin.