forked from qt-creator/qt-creator
Android, Debugger: Simplify setUseCtrlCStub callers
The Windows-only restriction is nowadays handled inside QtcProcess. Change-Id: I77d6914831ff172026665a429b497940c60970ac Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -287,13 +287,11 @@ AndroidDeployQtStep::DeployErrorCode AndroidDeployQtStep::runDeploy()
|
||||
cmd.addArgs({"install", "-r", m_apkPath.toString()});
|
||||
}
|
||||
|
||||
m_process = new Utils::QtcProcess;
|
||||
m_process = new QtcProcess;
|
||||
m_process->setCommand(cmd);
|
||||
m_process->setWorkingDirectory(m_workingDirectory);
|
||||
m_process->setEnvironment(m_environment);
|
||||
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
m_process->setUseCtrlCStub(true);
|
||||
m_process->setUseCtrlCStub(true);
|
||||
|
||||
DeployErrorCode deployError = NoError;
|
||||
connect(m_process, &Utils::QtcProcess::readyReadStandardOutput,
|
||||
|
@@ -1043,8 +1043,7 @@ void AndroidSdkManagerPrivate::getPendingLicense(SdkCmdFutureInterface &fi)
|
||||
licenseCommand.setEnvironment(AndroidConfigurations::toolsEnvironment(m_config));
|
||||
bool reviewingLicenses = false;
|
||||
licenseCommand.setCommand(CommandLine(m_config.sdkManagerToolPath(), {"--licenses", sdkRootArg(m_config)}));
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
licenseCommand.setUseCtrlCStub(true);
|
||||
licenseCommand.setUseCtrlCStub(true);
|
||||
licenseCommand.start();
|
||||
QTextCodec *codec = QTextCodec::codecForLocale();
|
||||
int inputCounter = 0, steps = -1;
|
||||
|
@@ -3802,7 +3802,7 @@ void GdbEngine::setupEngine()
|
||||
CHECK_STATE(EngineSetupRequested);
|
||||
showMessage("TRYING TO START ADAPTER");
|
||||
|
||||
if (isRemoteEngine() && HostOsInfo::isWindowsHost())
|
||||
if (isRemoteEngine())
|
||||
m_gdbProc.setUseCtrlCStub(runParameters().useCtrlCStub); // This is only set for QNX
|
||||
|
||||
const DebuggerRunParameters &rp = runParameters();
|
||||
|
Reference in New Issue
Block a user