diff options
Diffstat (limited to 'src/plugins/debugger/gdb/localplaingdbadapter.cpp')
-rw-r--r-- | src/plugins/debugger/gdb/localplaingdbadapter.cpp | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/src/plugins/debugger/gdb/localplaingdbadapter.cpp b/src/plugins/debugger/gdb/localplaingdbadapter.cpp index bd5099a4b9..1e3994b019 100644 --- a/src/plugins/debugger/gdb/localplaingdbadapter.cpp +++ b/src/plugins/debugger/gdb/localplaingdbadapter.cpp @@ -68,7 +68,7 @@ AbstractGdbAdapter::DumperHandling LocalPlainGdbAdapter::dumperHandling() const void LocalPlainGdbAdapter::startAdapter() { - QTC_ASSERT(state() == EngineSettingUp, qDebug() << state()); + QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state()); showMessage(_("TRYING TO START ADAPTER")); QStringList gdbArgs; @@ -94,6 +94,28 @@ void LocalPlainGdbAdapter::startAdapter() m_engine->handleAdapterStarted(); } +void LocalPlainGdbAdapter::setupInferior() +{ + AbstractPlainGdbAdapter::setupInferior(); +} + +void LocalPlainGdbAdapter::runEngine() +{ + AbstractPlainGdbAdapter::runEngine(); +} + +void LocalPlainGdbAdapter::shutdownInferior() +{ + m_engine->defaultInferiorShutdown("kill"); +} + +void LocalPlainGdbAdapter::shutdownAdapter() +{ + showMessage(_("PLAIN ADAPTER SHUTDOWN %1").arg(state())); + m_outputCollector.shutdown(); + m_engine->notifyAdapterShutdownOk(); +} + void LocalPlainGdbAdapter::checkForReleaseBuild() { // Quick check for a "release" build @@ -128,14 +150,10 @@ void LocalPlainGdbAdapter::interruptInferior() return; } - if (!interruptProcess(attachedPID)) + if (!interruptProcess(attachedPID)) { showMessage(_("CANNOT INTERRUPT %1").arg(attachedPID)); -} - -void LocalPlainGdbAdapter::shutdown() -{ - showMessage(_("PLAIN ADAPTER SHUTDOWN %1").arg(state())); - m_outputCollector.shutdown(); + m_engine->notifyInferiorStopFailed(); + } } QByteArray LocalPlainGdbAdapter::execFilePath() const |