| 66 | } |
| 67 | |
| 68 | void CppDebuggerPlugin::setupExecutePlugin(KDevelop::IPlugin* plugin, bool load) |
| 69 | { |
| 70 | if (plugin == this) { |
| 71 | return; |
| 72 | } |
| 73 | |
| 74 | auto iface = plugin->extension<IExecutePlugin>(); |
| 75 | if (!iface) { |
| 76 | return; |
| 77 | } |
| 78 | |
| 79 | auto type = core()->runController()->launchConfigurationTypeForId(iface->nativeAppConfigTypeId()); |
| 80 | Q_ASSERT(type); |
| 81 | |
| 82 | if (load) { |
| 83 | auto launcher = new GdbLauncher(this, iface); |
| 84 | m_launchers.insert(plugin, launcher); |
| 85 | type->addLauncher(launcher); |
| 86 | } else { |
| 87 | auto launcher = m_launchers.take(plugin); |
| 88 | Q_ASSERT(launcher); |
| 89 | |
| 90 | type->removeLauncher(launcher); |
| 91 | delete launcher; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | CppDebuggerPlugin::~CppDebuggerPlugin() = default; |
| 96 |
nothing calls this directly
no test coverage detected