Debugger: Make AttachToRemoteProcess use the remote interrupt mechanism

... instead of trying to interrupt a local inferior with the same pid.

Change-Id: Ia5a3aa719f2df408f13dde48744c0d79a629addb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2017-10-20 13:08:37 +02:00
parent 59c5e65de1
commit 35fa833f29

View File

@@ -4529,7 +4529,7 @@ void GdbEngine::interruptInferior2()
interruptLocalInferior(runParameters().attachPID.pid());
} else if (isRemoteEngine()) {
} else if (isRemoteEngine() || runParameters().startMode == AttachToRemoteProcess) {
CHECK_STATE(InferiorStopRequested);
if (usesTargetAsync()) {