aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-07-25 01:42:14 +0200
committerhjk <[email protected]>2012-07-25 10:38:50 +0200
commitc6f7eaea592c1721cfaaa779cda61f8c9f30ea99 (patch)
tree257c9e98fd39cf72969dc5a812ffeab1ab6db040 /src/plugins/debugger/debuggerplugin.cpp
parent0c0c592038e4c362b4bf9760d4bf1272f135c6e0 (diff)
debugger: remove channel lineedit in StartRemote dialog
The information can be retrieved from the Profile information nowadays. Change-Id: I964cb4a782bb746bb97edbdb03cc99d64153106c Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 3e9acd6409c..74745813820 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -550,9 +550,16 @@ void fillParameters(DebuggerStartParameters *sp, Id id)
QTC_ASSERT(profile, return);
sp->sysRoot = SysRootProfileInformation::sysRoot(profile).toString();
sp->debuggerCommand = DebuggerProfileInformation::debuggerCommand(profile).toString();
+
ToolChain *tc = ToolChainProfileInformation::toolChain(profile);
if (tc)
sp->toolChainAbi = tc->targetAbi();
+
+ IDevice::ConstPtr device = DeviceProfileInformation::device(profile);
+ if (device) {
+ sp->connParams = device->sshParameters();
+ sp->remoteChannel = QString("%1:%2").arg(sp->connParams.host).arg(sp->connParams.port);
+ }
}
static TextEditor::ITextEditor *currentTextEditor()