forked from qt-creator/qt-creator
Debugger: Transform DebuggerRunParameters::useTargetAsync
Task-number: QTCREATORBUG-29168 Change-Id: I969fddf1efa43790506da56f87c648fcc9e7b4f4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -102,7 +102,7 @@ public:
|
|||||||
if (!HostOsInfo::isWindowsHost()
|
if (!HostOsInfo::isWindowsHost()
|
||||||
&& (qtVersion && AndroidConfig::ndkVersion(qtVersion) >= QVersionNumber(11, 0, 0))) {
|
&& (qtVersion && AndroidConfig::ndkVersion(qtVersion) >= QVersionNumber(11, 0, 0))) {
|
||||||
qCDebug(androidDebugSupportLog) << "UseTargetAsync: " << true;
|
qCDebug(androidDebugSupportLog) << "UseTargetAsync: " << true;
|
||||||
setUseTargetAsync(true);
|
rp.setUseTargetAsync(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCppDebugging()) {
|
if (isCppDebugging()) {
|
||||||
|
@@ -144,7 +144,9 @@ public:
|
|||||||
void setUseCtrlCStub(bool on) { m_useCtrlCStub = on; }
|
void setUseCtrlCStub(bool on) { m_useCtrlCStub = on; }
|
||||||
bool useCtrlCStub() const { return m_useCtrlCStub; }
|
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;
|
Utils::FilePaths additionalSearchDirectories;
|
||||||
|
|
||||||
// Used by iOS.
|
// Used by iOS.
|
||||||
@@ -246,6 +248,8 @@ private:
|
|||||||
QStringList m_expectedSignals; // Used by Valgrind
|
QStringList m_expectedSignals; // Used by Valgrind
|
||||||
|
|
||||||
bool m_useCtrlCStub = false; // For QNX debugging.
|
bool m_useCtrlCStub = false; // For QNX debugging.
|
||||||
|
|
||||||
|
bool m_useTargetAsync = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
@@ -113,11 +113,6 @@ void DebuggerRunTool::setLldbPlatform(const QString &platform)
|
|||||||
m_runParameters.platform = platform;
|
m_runParameters.platform = platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerRunTool::setUseTargetAsync(bool on)
|
|
||||||
{
|
|
||||||
m_runParameters.useTargetAsync = on;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggerRunTool::setContinueAfterAttach(bool on)
|
void DebuggerRunTool::setContinueAfterAttach(bool on)
|
||||||
{
|
{
|
||||||
m_runParameters.continueAfterAttach = on;
|
m_runParameters.continueAfterAttach = on;
|
||||||
|
@@ -64,8 +64,6 @@ public:
|
|||||||
void modifyDebuggerEnvironment(const Utils::EnvironmentItems &item);
|
void modifyDebuggerEnvironment(const Utils::EnvironmentItems &item);
|
||||||
void addSearchDirectory(const Utils::FilePath &dir);
|
void addSearchDirectory(const Utils::FilePath &dir);
|
||||||
|
|
||||||
void setUseTargetAsync(bool on);
|
|
||||||
|
|
||||||
void setIosPlatform(const QString &platform);
|
void setIosPlatform(const QString &platform);
|
||||||
void setDeviceSymbolsRoot(const QString &deviceSymbolsRoot);
|
void setDeviceSymbolsRoot(const QString &deviceSymbolsRoot);
|
||||||
void setDeviceUuid(const QString &uuid);
|
void setDeviceUuid(const QString &uuid);
|
||||||
|
@@ -4303,7 +4303,7 @@ bool GdbEngine::usesExecInterrupt() const
|
|||||||
|
|
||||||
bool GdbEngine::usesTargetAsync() const
|
bool GdbEngine::usesTargetAsync() const
|
||||||
{
|
{
|
||||||
return runParameters().useTargetAsync || settings().targetAsync();
|
return runParameters().useTargetAsync() || settings().targetAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GdbEngine::scheduleTestResponse(int testCase, const QString &response)
|
void GdbEngine::scheduleTestResponse(int testCase, const QString &response)
|
||||||
|
Reference in New Issue
Block a user