diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2011-11-09 14:19:50 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@nokia.com> | 2011-11-09 14:28:49 +0100 |
commit | fd26ab22e9db6075604ffdd7d54ae9b57644590a (patch) | |
tree | 9c39128e3a088fd7baf3584e78b023d12c08405e /src/plugins/debugger/lldb | |
parent | f9623b5ad69bbe6700b27f0cd8b6191c70994908 (diff) | |
download | qt-creator-fd26ab22e9db6075604ffdd7d54ae9b57644590a.tar.gz |
SSH: Improve SshRemoteProcessRunner API.
It's silly that we fix the connection parameters in the constructor. A
given object of the class, once created, should be able to repeatedly
run any command with any connection.
Change-Id: Ia45b9d5b6f25c25fb46751cdb47cf81877d8f9a9
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Diffstat (limited to 'src/plugins/debugger/lldb')
-rw-r--r-- | src/plugins/debugger/lldb/lldbenginehost.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/debugger/lldb/lldbenginehost.cpp b/src/plugins/debugger/lldb/lldbenginehost.cpp index 9360783412..6005ac0ce8 100644 --- a/src/plugins/debugger/lldb/lldbenginehost.cpp +++ b/src/plugins/debugger/lldb/lldbenginehost.cpp @@ -151,11 +151,10 @@ LldbEngineHost::LldbEngineHost(const DebuggerStartParameters &startParameters) if (startParameters.startMode == StartRemoteEngine) { m_guestProcess = 0; - Utils::SshRemoteProcessRunner * const runner = - new Utils::SshRemoteProcessRunner(startParameters.connParams); + Utils::SshRemoteProcessRunner * const runner = new Utils::SshRemoteProcessRunner; connect (runner, SIGNAL(connectionError(Utils::SshError)), this, SLOT(sshConnectionError(Utils::SshError))); - runner->run(startParameters.serverStartScript.toUtf8()); + runner->run(startParameters.serverStartScript.toUtf8(), startParameters.connParams); setGuestDevice(new SshIODevice(runner)); } else { m_guestProcess = new QProcess(this); |