| 229 | } |
| 230 | |
| 231 | void 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 |
| 252 | void MIDebuggerPlugin::slotAttachProcess() |
nothing calls this directly
no test coverage detected