| 26 | K_PLUGIN_FACTORY_WITH_JSON(LldbDebuggerFactory, "kdevlldb.json", registerPlugin<LldbDebuggerPlugin>(); ) |
| 27 | |
| 28 | LldbDebuggerPlugin::LldbDebuggerPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList&) |
| 29 | : MIDebuggerPlugin(QStringLiteral("kdevlldb"), i18n("LLDB"), parent, metaData) |
| 30 | { |
| 31 | initMyResource(); |
| 32 | |
| 33 | setXMLFile(QStringLiteral("kdevlldbui.rc")); |
| 34 | |
| 35 | auto pluginController = core()->pluginController(); |
| 36 | const auto plugins = pluginController->allPluginsForExtension(QStringLiteral("org.kdevelop.IExecutePlugin")); |
| 37 | for (auto plugin : plugins) { |
| 38 | setupExecutePlugin(plugin, true); |
| 39 | } |
| 40 | |
| 41 | connect(pluginController, &KDevelop::IPluginController::pluginLoaded, |
| 42 | this, [this](KDevelop::IPlugin* plugin) { |
| 43 | setupExecutePlugin(plugin, true); |
| 44 | }); |
| 45 | |
| 46 | connect(pluginController, &KDevelop::IPluginController::unloadingPlugin, |
| 47 | this, [this](KDevelop::IPlugin* plugin) { |
| 48 | setupExecutePlugin(plugin, false); |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | void LldbDebuggerPlugin::unload() |
| 53 | { |
nothing calls this directly
no test coverage detected