From f8146588f9493403334e88da85aada512929d724 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Tue, 20 Nov 2012 15:04:00 -0600 Subject: [PATCH] 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: Fawzi Mohamed --- src/plugins/debugger/gdb/startgdbserverdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/gdb/startgdbserverdialog.cpp b/src/plugins/debugger/gdb/startgdbserverdialog.cpp index 9a1d2b79634..1b1ad0308a4 100644 --- a/src/plugins/debugger/gdb/startgdbserverdialog.cpp +++ b/src/plugins/debugger/gdb/startgdbserverdialog.cpp @@ -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 = sp.connParams.host + QLatin1Char(':') + QString::number(sp.connParams.port); sp.displayName = tr("Remote: \"%1:%2\"").arg(sp.connParams.host).arg(port); sp.executable = localExecutable; sp.startMode = AttachToRemoteServer;