MCPcopy Create free account
hub / github.com/KDE/kdevelop / setupExecutePlugin

Method setupExecutePlugin

plugins/lldb/debuggerplugin.cpp:61–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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
88LldbDebuggerPlugin::~LldbDebuggerPlugin() = default;
89

Callers

nothing calls this directly

Calls 6

runControllerMethod · 0.80
addLauncherMethod · 0.80
removeLauncherMethod · 0.80
nativeAppConfigTypeIdMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected