From c6db3543872de1beafd7b1dbe18c7b891393ea2f Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 4 Jun 2009 16:15:01 +0200
Subject: [PATCH] debugger: disable reverse debugging for 1.2 as Gui is
 unfinished

---
 src/plugins/debugger/debuggerplugin.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 9d8e1607f94..3caaccb4890 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -291,6 +291,10 @@ QWidget *CommonOptionsPage::createPage(QWidget *parent)
     m_group.insert(theDebuggerAction(MaximalStackDepth), 
         m_ui.spinBoxMaximalStackDepth);
 
+#ifdef USE_REVERSE_DEBUGGING
+    m_ui.checkBoxEnableReverseDebugging->hide();
+#endif
+
     return w;
 }
 
@@ -682,10 +686,12 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
         Constants::JUMP_TO_LINE, debuggercontext);
     mdebug->addAction(cmd);
 
+#ifdef USE_REVERSE_DEBUGGING
     cmd = am->registerAction(m_manager->m_reverseDirectionAction,
         Constants::REVERSE, debuggercontext);
     cmd->setDefaultKeySequence(QKeySequence(Constants::REVERSE_KEY));
     mdebug->addAction(cmd);
+#endif
 
     sep = new QAction(this);
     sep->setSeparator(true);
@@ -831,8 +837,10 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
     debugToolBar->addSeparator();
     debugToolBar->addAction(am->command(Constants::STEPI)->action());
     debugToolBar->addAction(am->command(Constants::NEXTI)->action());
+#ifdef USE_REVERSE_DEBUGGING
     debugToolBar->addSeparator();
     debugToolBar->addAction(am->command(Constants::REVERSE)->action());
+#endif
     debugToolBar->addSeparator();
     debugToolBar->addWidget(new QLabel(tr("Threads:")));
 
-- 
GitLab