debugger: simpler handling of the ipv6 case

Change-Id: If1d5bdd5afd2aeebfcf39e72045ef4327cb84c0c
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
hjk
2012-02-29 17:14:03 +01:00
committed by hjk
parent dd2309fa45
commit 59594ad297
3 changed files with 19 additions and 17 deletions

View File

@@ -359,12 +359,7 @@ void StartGdbServerDialog::reportOpenPort(int port)
return;
LinuxDeviceConfiguration::ConstPtr device = d->currentDevice();
QString host = device->sshParameters().host;
QString channel;
if (host.contains(QLatin1Char(':')))
channel = QString::fromLatin1("[%1]:%2").arg(host).arg(port);
else
channel = QString::fromLatin1("%1:%2").arg(host).arg(port);
QString channel = QString("%1:%2").arg(device->sshParameters().host).arg(port);
logMessage(tr("Server started on %1").arg(channel));
QMetaObject::invokeMethod(ob, "gdbServerStarted", Qt::QueuedConnection,