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

Method slotExamineCore

plugins/debuggercommon/midebuggerplugin.cpp:231–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void MIDebuggerPlugin::slotExamineCore()
232{
233 showStatusMessage(i18n("Choose a core file to examine..."), 1000);
234
235 if (!core()->debugController()->canAddSession(replaceSessionQuestionText())) {
236 return;
237 }
238
239 const ScopedDialog<SelectCoreDialog> dialog(core()->uiController()->activeMainWindow());
240 if (dialog->exec() == QDialog::Rejected) {
241 return;
242 }
243
244 auto* const runController = core()->runController();
245 MIExamineCoreJob::CoreInfo coreInfo{dialog->executableFile(), dialog->core()};
246 auto* const job = new MIExamineCoreJob(this, std::move(coreInfo), runController);
247 runController->registerJob(job);
248 // job->start() is called in registerJob
249}
250
251#if HAVE_KSYSGUARD
252void MIDebuggerPlugin::slotAttachProcess()

Callers

nothing calls this directly

Calls 9

canAddSessionMethod · 0.80
debugControllerMethod · 0.80
uiControllerMethod · 0.80
execMethod · 0.80
runControllerMethod · 0.80
executableFileMethod · 0.80
registerJobMethod · 0.80
activeMainWindowMethod · 0.45
coreMethod · 0.45

Tested by

no test coverage detected