Commit f8146588 authored by Ryan May's avatar Ryan May Committed by Fawzi Mohamed
Browse files

Set the proper port on the remote channel.

Without this fix, GDB tries to connect to the gdbserver on the SSH port
when using the "Attach to Running Application" action. This fixes that
to use the proper gdbserver port.

Change-Id: I4ada31693879f28acf8046885d1dd15aff5d748c
Reviewed-by: default avatarFawzi Mohamed <>
parent deeef530
......@@ -209,6 +209,7 @@ void GdbServerStarter::attach(int port)
QTC_ASSERT(fillParameters(&sp, d->kit), return);
sp.masterEngineType = GdbEngineType;
sp.connParams.port = port;
sp.remoteChannel = + QLatin1Char(':') + QString::number(sp.connParams.port);
sp.displayName = tr("Remote: \"%1:%2\"").arg(;
sp.executable = localExecutable;
sp.startMode = AttachToRemoteServer;
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