forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.8'
Conflicts: src/plugins/cpptools/cppcompletion_test.cpp src/plugins/cpptools/cpptoolsplugin.h src/plugins/projectexplorer/customtoolchain.cpp src/plugins/vcsbase/command.cpp Change-Id: Ie7b3c9e136c0748b41320227c757471259339b48
This commit is contained in:
@@ -1156,19 +1156,20 @@ void CdbEngine::interruptInferior()
|
||||
if (debug)
|
||||
qDebug() << "CdbEngine::interruptInferior()" << stateName(state());
|
||||
|
||||
bool ok = false;
|
||||
if (!canInterruptInferior())
|
||||
if (!canInterruptInferior()) {
|
||||
// Restore running state if inferior can't be stoped.
|
||||
showMessage(tr("Interrupting is not possible in remote sessions."), LogError);
|
||||
else
|
||||
ok = doInterruptInferior(NoSpecialStop);
|
||||
// Restore running state if stop failed.
|
||||
if (!ok) {
|
||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorStopOk")
|
||||
notifyInferiorStopOk();
|
||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorRunRequested")
|
||||
notifyInferiorRunRequested();
|
||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorRunOk")
|
||||
notifyInferiorRunOk();
|
||||
return;
|
||||
}
|
||||
if (!doInterruptInferior(NoSpecialStop)) {
|
||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorStopFailed")
|
||||
notifyInferiorStopFailed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user