remotelinux: make RemoteProcess struct public

Change-Id: I2ff78047cfcc36570b9c17852bd3b05d2d21df58
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
hjk
2012-05-04 11:44:14 +02:00
committed by hjk
parent 5aef8ac4d7
commit 5539ed41ac
3 changed files with 17 additions and 21 deletions

View File

@@ -271,8 +271,8 @@ void StartGdbServerDialog::attachToProcess()
const int port = d->gatherer.getNextFreePort(&ports);
const int row = d->proxyModel.mapToSource(indexes.first()).row();
QTC_ASSERT(row >= 0, return);
const int pid = d->processList->pidAt(row);
d->remoteCommandLine = d->processList->commandLineAt(row);
RemoteProcess process = d->processList->at(row);
d->remoteCommandLine = process.cmdLine;
if (port == -1) {
reportFailure();
return;
@@ -282,7 +282,7 @@ void StartGdbServerDialog::attachToProcess()
d->settings->setValue(LastDevice, d->deviceComboBox->currentIndex());
d->settings->setValue(LastProcessName, d->processFilterLineEdit->text());
startGdbServerOnPort(port, pid);
startGdbServerOnPort(port, process.pid);
}
void StartGdbServerDialog::reportFailure()