RemoteLinux/Debugger: Pass right platform string to LLDB

Needed for setting up device connection later.

Change-Id: Ib794a8bf093714935b9a3ed3f290d46550763d68
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-04-02 12:05:08 +02:00
parent a9fb719755
commit aec5563364
4 changed files with 8 additions and 0 deletions

View File

@@ -325,6 +325,11 @@ void DebuggerRunTool::setSymbolFile(const FilePath &symbolFile)
m_runParameters.symbolFile = symbolFile;
}
void DebuggerRunTool::setLldbPlatform(const QString &platform)
{
m_runParameters.platform = platform;
}
void DebuggerRunTool::setRemoteChannel(const QString &channel)
{
m_runParameters.remoteChannel = channel;

View File

@@ -92,6 +92,7 @@ public:
void setSysRoot(const Utils::FilePath &sysRoot);
void setSymbolFile(const Utils::FilePath &symbolFile);
void setLldbPlatform(const QString &platform);
void setRemoteChannel(const QString &channel);
void setRemoteChannel(const QString &host, int port);
void setRemoteChannel(const QUrl &url);

View File

@@ -278,6 +278,7 @@ void LldbEngine::setupEngine()
cmd2.arg("workingdirectory", rp.inferior.workingDirectory);
cmd2.arg("environment", rp.inferior.environment.toStringList());
cmd2.arg("processargs", toHex(QtcProcess::splitArgs(rp.inferior.commandLineArguments).join(QChar(0))));
cmd2.arg("platform", rp.platform);
if (terminal()) {
const qint64 attachedPID = terminal()->applicationPid();

View File

@@ -49,6 +49,7 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
setStartMode(AttachToRemoteServer);
setCloseMode(KillAndExitMonitorAtClose);
setUseExtendedRemote(true);
setLldbPlatform("remote-linux");
}
} // namespace Internal