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