forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
@@ -49,6 +49,7 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
|
||||
setStartMode(AttachToRemoteServer);
|
||||
setCloseMode(KillAndExitMonitorAtClose);
|
||||
setUseExtendedRemote(true);
|
||||
setLldbPlatform("remote-linux");
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
Reference in New Issue
Block a user