Commit 61bb1b9d authored by Christian Kandeler's avatar Christian Kandeler Committed by hjk
Browse files

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: default avatarhjk <qthjk@ovi.com>
parent 220f67df
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment