forked from qt-creator/qt-creator
remote debugger: wrap IPv6 addresses of remote gdb in [] as per rfc2732.
Change-Id: I590f7e8e7e45a45fc699732fdefbd5130a06d3e1 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -110,7 +110,10 @@ DebuggerStartParameters AbstractRemoteLinuxDebugSupport::startParameters(const R
|
||||
params.startMode = AttachToRemoteServer;
|
||||
params.executable = runConfig->localExecutableFilePath();
|
||||
params.debuggerCommand = runConfig->gdbCmd();
|
||||
params.remoteChannel = devConf->sshParameters().host + QLatin1String(":-1");
|
||||
QString host = devConf->sshParameters().host;
|
||||
params.remoteChannel = host.contains(QLatin1Char(':'))
|
||||
? QString::fromLatin1("[%1]:-1").arg(host)
|
||||
: host + QLatin1String(":-1");
|
||||
|
||||
// TODO: This functionality should be inside the debugger.
|
||||
const ProjectExplorer::Abi &abi = runConfig->target()
|
||||
|
||||
Reference in New Issue
Block a user