Commit 37ea6c42 authored by hjk's avatar hjk
Browse files

debugger: move "start action" to the begin of the menu, also disable Tcf

parent efc546f8
...@@ -594,6 +594,10 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess ...@@ -594,6 +594,10 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
am->actionContainer(ProjectExplorer::Constants::M_DEBUG); am->actionContainer(ProjectExplorer::Constants::M_DEBUG);
Core::Command *cmd = 0; Core::Command *cmd = 0;
cmd = am->registerAction(m_manager->m_continueAction,
ProjectExplorer::Constants::DEBUG, QList<int>() << m_gdbRunningContext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
cmd = am->registerAction(m_startExternalAction, cmd = am->registerAction(m_startExternalAction,
Constants::STARTEXTERNAL, globalcontext); Constants::STARTEXTERNAL, globalcontext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
...@@ -605,19 +609,16 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess ...@@ -605,19 +609,16 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
cmd = am->registerAction(m_attachCoreAction, cmd = am->registerAction(m_attachCoreAction,
Constants::ATTACHCORE, globalcontext); Constants::ATTACHCORE, globalcontext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
/*
cmd = am->registerAction(m_attachTcfAction, cmd = am->registerAction(m_attachTcfAction,
Constants::ATTACHTCF, globalcontext); Constants::ATTACHTCF, globalcontext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
*/
cmd = am->registerAction(m_startRemoteAction, cmd = am->registerAction(m_startRemoteAction,
Constants::ATTACHREMOTE, globalcontext); Constants::ATTACHREMOTE, globalcontext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
cmd = am->registerAction(m_manager->m_continueAction,
ProjectExplorer::Constants::DEBUG, QList<int>() << m_gdbRunningContext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
cmd = am->registerAction(m_detachAction, cmd = am->registerAction(m_detachAction,
Constants::DETACH, globalcontext); Constants::DETACH, globalcontext);
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
......
Supports Markdown
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