diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp index bb903e30ced..4e8738040ed 100644 --- a/src/plugins/debugger/debuggerdialogs.cpp +++ b/src/plugins/debugger/debuggerdialogs.cpp @@ -224,7 +224,6 @@ static QList processList() return unixProcessList(); #endif } - /////////////////////////////////////////////////////////////////////// // // AttachExternalDialog @@ -385,8 +384,11 @@ StartRemoteDialog::StartRemoteDialog(QWidget *parent) { m_ui->setupUi(this); m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true); + m_ui->debuggerPathChooser->setExpectedKind(Utils::PathChooser::File); + m_ui->debuggerPathChooser->setPromptDialogTitle(tr("Select Debugger")); m_ui->executablePathChooser->setExpectedKind(Utils::PathChooser::File); m_ui->executablePathChooser->setPromptDialogTitle(tr("Select Executable")); + m_ui->sysrootPathChooser->setPromptDialogTitle(tr("Select Sysroot")); m_ui->serverStartScript->setExpectedKind(Utils::PathChooser::File); m_ui->serverStartScript->setPromptDialogTitle(tr("Select Start Script")); @@ -424,6 +426,16 @@ QString StartRemoteDialog::localExecutable() const return m_ui->executablePathChooser->path(); } +void StartRemoteDialog::setDebugger(const QString &debugger) +{ + m_ui->debuggerPathChooser->setPath(debugger); +} + +QString StartRemoteDialog::debugger() const +{ + return m_ui->debuggerPathChooser->path(); +} + void StartRemoteDialog::setRemoteArchitectures(const QStringList &list) { m_ui->architectureComboBox->clear(); diff --git a/src/plugins/debugger/debuggerdialogs.h b/src/plugins/debugger/debuggerdialogs.h index 87d59d11bbc..f80eafeba7f 100644 --- a/src/plugins/debugger/debuggerdialogs.h +++ b/src/plugins/debugger/debuggerdialogs.h @@ -135,6 +135,7 @@ public: void setRemoteArchitecture(const QString &arch); void setRemoteArchitectures(const QStringList &arches); void setLocalExecutable(const QString &executable); + void setDebugger(const QString &debugger); QString localExecutable() const; QString remoteChannel() const; QString remoteArchitecture() const; @@ -144,6 +145,7 @@ public: bool useServerStartScript() const; void setSysRoot(const QString &sysRoot); QString sysRoot() const; + QString debugger() const; private slots: void updateState(); diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index b46d9b7cdd4..ddf7d2449fa 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1359,6 +1359,7 @@ void DebuggerPlugin::startRemoteApplication() configValue(_("LastRemoteChannel")).toString()); dlg.setLocalExecutable( configValue(_("LastLocalExecutable")).toString()); + dlg.setDebugger(configValue(_("LastDebugger")).toString()); dlg.setRemoteArchitecture(lastUsed); dlg.setServerStartScript( configValue(_("LastServerStartScript")).toString()); @@ -1369,6 +1370,7 @@ void DebuggerPlugin::startRemoteApplication() return; setConfigValue(_("LastRemoteChannel"), dlg.remoteChannel()); setConfigValue(_("LastLocalExecutable"), dlg.localExecutable()); + setConfigValue(_("LastDebugger"), dlg.debugger()); setConfigValue(_("LastRemoteArchitecture"), dlg.remoteArchitecture()); setConfigValue(_("LastServerStartScript"), dlg.serverStartScript()); setConfigValue(_("LastUseServerStartScript"), dlg.useServerStartScript()); @@ -1376,6 +1378,7 @@ void DebuggerPlugin::startRemoteApplication() sp->remoteChannel = dlg.remoteChannel(); sp->remoteArchitecture = dlg.remoteArchitecture(); sp->executable = dlg.localExecutable(); + sp->debuggerCommand = dlg.debugger(); sp->startMode = StartRemote; if (dlg.useServerStartScript()) sp->serverStartScript = dlg.serverStartScript(); diff --git a/src/plugins/debugger/startremotedialog.ui b/src/plugins/debugger/startremotedialog.ui index f6ac099ea58..fe83dd259fe 100644 --- a/src/plugins/debugger/startremotedialog.ui +++ b/src/plugins/debugger/startremotedialog.ui @@ -25,74 +25,84 @@ QFormLayout::ExpandingFieldsGrow + + + + Debugger: + + + + + + + + + Local executable: + + + + + + + Host and port: - + localhost:5115 - - - - + Architecture: - + true - - - - - - - - - - Server start script: - - - - - - Use server start script: - - - - Sysroot: - + - - + + - Local executable: + Use server start script: + + + + + + + Server start script: + + + + + +