| 29 | |
| 30 | template<class JobBase> |
| 31 | MIDebugJobBase<JobBase>::MIDebugJobBase(MIDebuggerPlugin* plugin, QObject* parent) |
| 32 | : JobBase(parent) |
| 33 | { |
| 34 | Q_ASSERT(plugin); |
| 35 | |
| 36 | JobBase::setCapabilities(KJob::Killable); |
| 37 | |
| 38 | m_session = plugin->createSession(); |
| 39 | QObject::connect(m_session, &MIDebugSession::stateChanged, this, [this](IDebugSession::DebuggerState state) { |
| 40 | if (state == IDebugSession::EndedState) { |
| 41 | done(); |
| 42 | } |
| 43 | }); |
| 44 | |
| 45 | qCDebug(DEBUGGERCOMMON) << "created debug job" << this << "with" << m_session; |
| 46 | } |
| 47 | |
| 48 | template<class JobBase> |
| 49 | MIDebugJobBase<JobBase>::~MIDebugJobBase() |
nothing calls this directly
no test coverage detected