diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index 8a0eba727c50fe84956657131854c7d6932a842f..670db758c0070602427c3b429739dba6293027ac 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -317,9 +317,6 @@ DebuggerSettings *DebuggerSettings::instance() item->setValue(true); instance->insertItem(UseCodeModel, item); - item = new SavedAction(instance); - item->setText(tr("Recheck Debugging Helper Availability")); - instance->insertItem(RecheckDebuggingHelpers, item); // // Breakpoints diff --git a/src/plugins/debugger/debuggeractions.h b/src/plugins/debugger/debuggeractions.h index 6fd56fb64faf085b45417e260060d41fb3bd1e8c..c0ef28a8f37b8770ccc78498d84e50440f5b0a41 100644 --- a/src/plugins/debugger/debuggeractions.h +++ b/src/plugins/debugger/debuggeractions.h @@ -94,7 +94,6 @@ enum DebuggerActionCode OperateByInstruction, AutoDerefPointers, - RecheckDebuggingHelpers, UseDebuggingHelpers, UseCustomDebuggingHelperLocation, CustomDebuggingHelperLocation, diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 56f165db766dfe71f32744adb3a98ad3c87a6459..34d1b5b591fe95be44a8892a4e906e3836ae285c 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -2235,7 +2235,6 @@ void DebuggerPluginPrivate::setInitialState() m_actions.jumpToLineAction2->setEnabled(false); m_actions.nextAction->setEnabled(false); - theDebuggerAction(RecheckDebuggingHelpers)->setEnabled(false); theDebuggerAction(AutoDerefPointers)->setEnabled(true); theDebuggerAction(ExpandStack)->setEnabled(false); theDebuggerAction(ExecuteCommand)->setEnabled(m_state == InferiorStopOk); @@ -2347,7 +2346,6 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine) m_actions.nextAction->setEnabled(stopped); - theDebuggerAction(RecheckDebuggingHelpers)->setEnabled(actionsEnabled); const bool canDeref = actionsEnabled && (m_capabilities & AutoDerefPointersCapability); theDebuggerAction(AutoDerefPointers)->setEnabled(canDeref); diff --git a/src/plugins/debugger/gdb/classicgdbengine.cpp b/src/plugins/debugger/gdb/classicgdbengine.cpp index 16d3a2685520156eb77e87c4e89cb03cff64d4c0..6918f23c20ffda506e9e16e069b80de1ab6cb544 100644 --- a/src/plugins/debugger/gdb/classicgdbengine.cpp +++ b/src/plugins/debugger/gdb/classicgdbengine.cpp @@ -569,17 +569,6 @@ void GdbEngine::tryQueryDebuggingHelpersClassic() CB(handleQueryDebuggingHelperClassic)); } -void GdbEngine::recheckDebuggingHelperAvailabilityClassic() -{ - PRECONDITION; - if (m_gdbAdapter->dumperHandling() != AbstractGdbAdapter::DumperNotAvailable) { - // Retrieve list of dumpable classes. - postCommand("call (void*)qDumpObjectData440(1,0,0,0,0,0,0,0)"); - postCommand("p (char*)&qDumpOutBuffer", - CB(handleQueryDebuggingHelperClassic)); - } -} - // Called from CoreAdapter and AttachAdapter void GdbEngine::updateAllClassic() { diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 27311de6e85b5ca2a586948d87bc9593af955cf2..ec860d875aad5ac0d7d4b3a37fee454bbcba4316 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1781,8 +1781,6 @@ void GdbEngine::setupEngine() this, SLOT(setUseDebuggingHelpers(QVariant))); connect(theDebuggerAction(DebugDebuggingHelpers), SIGNAL(valueChanged(QVariant)), this, SLOT(setDebugDebuggingHelpersClassic(QVariant))); - connect(theDebuggerAction(RecheckDebuggingHelpers), SIGNAL(triggered()), - this, SLOT(recheckDebuggingHelperAvailabilityClassic())); } QTC_ASSERT(state() == EngineSetupRequested, /**/); diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index c4b90b80da87bb69ad4693efa7c1b69242d38355..210b1c678174aa3c5dcc80a4395f55faf1a03844 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -516,7 +516,6 @@ private: ////////// View & Data Stuff ////////// void setDebuggingHelperStateClassic(DebuggingHelperState); void tryLoadDebuggingHelpersClassic(); void tryQueryDebuggingHelpersClassic(); - Q_SLOT void recheckDebuggingHelperAvailabilityClassic(); Q_SLOT void setDebugDebuggingHelpersClassic(const QVariant &on); Q_SLOT void setUseDebuggingHelpers(const QVariant &on); diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index b1b46cc49a2130ae414a70f45a80578f6db9289b..878b0a11db404dceeb1e947ea7091c4fb197f1f4 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -376,20 +376,8 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev) menu.addAction(actSetWatchPointAtPointerValue); menu.addSeparator(); - menu.addAction(theDebuggerAction(RecheckDebuggingHelpers)); menu.addAction(theDebuggerAction(UseDebuggingHelpers)); - QAction *actClearCodeModelSnapshot - = new QAction(tr("Refresh Code Model Snapshot"), &menu); - actClearCodeModelSnapshot->setEnabled(actionsEnabled - && theDebuggerAction(UseCodeModel)->isChecked()); - menu.addAction(actClearCodeModelSnapshot); - QAction *actShowInEditor - = new QAction(tr("Show View Contents in Editor"), &menu); - actShowInEditor->setEnabled(actionsEnabled); - menu.addAction(actShowInEditor); - menu.addSeparator(); menu.addAction(theDebuggerAction(UseToolTipsInLocalsView)); - menu.addAction(theDebuggerAction(AutoDerefPointers)); menu.addAction(theDebuggerAction(ShowStdNamespace)); menu.addAction(theDebuggerAction(ShowQtNamespace)); @@ -403,6 +391,15 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev) actAlwaysAdjustColumnWidth->setChecked(m_alwaysResizeColumnsToContents); menu.addSeparator(); + QAction *actClearCodeModelSnapshot + = new QAction(tr("Refresh Code Model Snapshot"), &menu); + actClearCodeModelSnapshot->setEnabled(actionsEnabled + && theDebuggerAction(UseCodeModel)->isChecked()); + menu.addAction(actClearCodeModelSnapshot); + QAction *actShowInEditor + = new QAction(tr("Show View Contents in Editor"), &menu); + actShowInEditor->setEnabled(actionsEnabled); + menu.addAction(actShowInEditor); menu.addAction(theDebuggerAction(SettingsDialog)); QAction *act = menu.exec(ev->globalPos());