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

Method setupExecutePlugin

plugins/gdb/debuggerplugin.cpp:68–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void 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
95CppDebuggerPlugin::~CppDebuggerPlugin() = default;
96

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