forked from qt-creator/qt-creator
remotelinux: use /proc/*/exe link target to determine local binary
Change-Id: I08a3ab02214e41af646f01e7de705009fa07ecac Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -109,6 +109,7 @@ public:
|
||||
SshRemoteProcessRunner runner;
|
||||
QSettings *settings;
|
||||
QString remoteCommandLine;
|
||||
QString remoteExecutable;
|
||||
};
|
||||
|
||||
StartGdbServerDialogPrivate::StartGdbServerDialogPrivate(StartGdbServerDialog *q)
|
||||
@@ -273,6 +274,7 @@ void StartGdbServerDialog::attachToProcess()
|
||||
QTC_ASSERT(row >= 0, return);
|
||||
RemoteProcess process = d->processList->at(row);
|
||||
d->remoteCommandLine = process.cmdLine;
|
||||
d->remoteExecutable = process.exe;
|
||||
if (port == -1) {
|
||||
reportFailure();
|
||||
return;
|
||||
@@ -378,7 +380,8 @@ void StartGdbServerDialog::reportOpenPort(int port)
|
||||
QMetaObject::invokeMethod(ob, member, Qt::QueuedConnection,
|
||||
Q_ARG(QString, channel),
|
||||
Q_ARG(QString, d->sysrootPathChooser->path()),
|
||||
Q_ARG(QString, d->remoteCommandLine));
|
||||
Q_ARG(QString, d->remoteCommandLine),
|
||||
Q_ARG(QString, d->remoteExecutable));
|
||||
}
|
||||
close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user