RemoteLinux: Use explicit address for gdbserver to listen on.

This way, our code (if not gdbserver's) is IPv6-safe.

Change-Id: I8cb95f5f3b01ba89b01d98f0bc00428979c16752
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kandeler
2012-02-10 10:40:41 +01:00
committed by hjk
parent 220f67dfdf
commit 61bb1b9df8

View File

@@ -209,8 +209,9 @@ void AbstractRemoteLinuxDebugSupport::startExecution()
const QString remoteCommandLine = (d->qmlDebugging && !d->cppDebugging)
? QString::fromLatin1("%1 %2 %3").arg(runner()->commandPrefix()).arg(remoteExe).arg(args)
: QString::fromLatin1("%1 gdbserver :%2 %3 %4").arg(runner()->commandPrefix())
.arg(d->gdbServerPort).arg(remoteExe).arg(args);
: QString::fromLatin1("%1 gdbserver %5:%2 %3 %4").arg(runner()->commandPrefix())
.arg(d->gdbServerPort).arg(remoteExe).arg(args)
.arg(runner()->connection()->connectionInfo().peerAddress.toString());
connect(runner(), SIGNAL(remoteProcessFinished(qint64)),
SLOT(handleRemoteProcessFinished(qint64)));
runner()->startExecution(remoteCommandLine.toUtf8());