Debugger: Transform DebuggerRunParameters::useTargetAsync

Task-number: QTCREATORBUG-29168
Change-Id: I969fddf1efa43790506da56f87c648fcc9e7b4f4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2025-01-10 13:32:31 +01:00
parent 9b1a85d61b
commit 17579bf93e
5 changed files with 7 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ public:
if (!HostOsInfo::isWindowsHost()
&& (qtVersion && AndroidConfig::ndkVersion(qtVersion) >= QVersionNumber(11, 0, 0))) {
qCDebug(androidDebugSupportLog) << "UseTargetAsync: " << true;
setUseTargetAsync(true);
rp.setUseTargetAsync(true);
}
if (isCppDebugging()) {

View File

@@ -144,7 +144,9 @@ public:
void setUseCtrlCStub(bool on) { m_useCtrlCStub = on; }
bool useCtrlCStub() const { return m_useCtrlCStub; }
bool useTargetAsync = false;
void setUseTargetAsync(bool on) { m_useTargetAsync = on; }
bool useTargetAsync() const { return m_useTargetAsync; }
Utils::FilePaths additionalSearchDirectories;
// Used by iOS.
@@ -246,6 +248,8 @@ private:
QStringList m_expectedSignals; // Used by Valgrind
bool m_useCtrlCStub = false; // For QNX debugging.
bool m_useTargetAsync = false;
};
namespace Internal {

View File

@@ -113,11 +113,6 @@ void DebuggerRunTool::setLldbPlatform(const QString &platform)
m_runParameters.platform = platform;
}
void DebuggerRunTool::setUseTargetAsync(bool on)
{
m_runParameters.useTargetAsync = on;
}
void DebuggerRunTool::setContinueAfterAttach(bool on)
{
m_runParameters.continueAfterAttach = on;

View File

@@ -64,8 +64,6 @@ public:
void modifyDebuggerEnvironment(const Utils::EnvironmentItems &item);
void addSearchDirectory(const Utils::FilePath &dir);
void setUseTargetAsync(bool on);
void setIosPlatform(const QString &platform);
void setDeviceSymbolsRoot(const QString &deviceSymbolsRoot);
void setDeviceUuid(const QString &uuid);

View File

@@ -4303,7 +4303,7 @@ bool GdbEngine::usesExecInterrupt() const
bool GdbEngine::usesTargetAsync() const
{
return runParameters().useTargetAsync || settings().targetAsync();
return runParameters().useTargetAsync() || settings().targetAsync();
}
void GdbEngine::scheduleTestResponse(int testCase, const QString &response)