diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index 49ebc219e50..f47dc289370 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -497,12 +497,6 @@ DebuggerSettings::DebuggerSettings() item->setDefaultValue(false); insertItem(IntelFlavor, item); - item = new SavedAction; - item->setSettingsKey(debugModeGroup, "IdentifyDebugInfoPackages"); - item->setCheckable(true); - item->setDefaultValue(false); - insertItem(IdentifyDebugInfoPackages, item); - item = new SavedAction; item->setSettingsKey(debugModeGroup, "UseToolTips"); item->setText(tr("Use tooltips in main editor when debugging")); diff --git a/src/plugins/debugger/debuggeractions.h b/src/plugins/debugger/debuggeractions.h index 05d9855b34d..61f5df39aa9 100644 --- a/src/plugins/debugger/debuggeractions.h +++ b/src/plugins/debugger/debuggeractions.h @@ -133,7 +133,6 @@ enum DebuggerActionCode WarnOnReleaseBuilds, MultiInferior, IntelFlavor, - IdentifyDebugInfoPackages, // Stack MaximalStackDepth, diff --git a/src/plugins/debugger/debuggercore.h b/src/plugins/debugger/debuggercore.h index dcb36f0fb9c..03c2b16224d 100644 --- a/src/plugins/debugger/debuggercore.h +++ b/src/plugins/debugger/debuggercore.h @@ -80,7 +80,6 @@ void addHideColumnActions(QMenu *menu, QWidget *widget); // Qt's various build paths for unpatched versions QStringList qtBuildPaths(); -void addDebugInfoTask(unsigned id, const QString &cmd); QWidget *addSearch(Utils::BaseTreeView *treeView); } // namespace Internal diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 2ad5ebc7400..5fdf0015e1b 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -583,43 +583,6 @@ static Kit *findUniversalCdbKit() return KitManager::kit(cdbPredicate()); } -/////////////////////////////////////////////////////////////////////// -// -// Debuginfo Taskhandler -// -/////////////////////////////////////////////////////////////////////// - -class DebugInfoTaskHandler : public ITaskHandler -{ -public: - bool canHandle(const Task &task) const final - { - return m_debugInfoTasks.contains(task.taskId); - } - - void handle(const Task &task) final - { - QString cmd = m_debugInfoTasks.value(task.taskId); - QProcess::startDetached(cmd); - } - - void addTask(unsigned id, const QString &cmd) - { - m_debugInfoTasks[id] = cmd; - } - - QAction *createAction(QObject *parent) const final - { - QAction *action = new QAction(DebuggerPlugin::tr("Install &Debug Information"), parent); - action->setToolTip(DebuggerPlugin::tr("Tries to install missing debug information.")); - return action; - } - -private: - QHash m_debugInfoTasks; -}; - - /////////////////////////////////////////////////////////////////////// // // DebuggerPluginPrivate @@ -765,7 +728,6 @@ public: QList m_optionPages; IContext m_debugModeContext; - DebugInfoTaskHandler m_debugInfoTaskHandler; Perspective m_perspective{Constants::PRESET_PERSPECTIVE_ID, tr("Debugger")}; DebuggerKitAspect debuggerKitAspect; @@ -2048,11 +2010,6 @@ void DebuggerPluginPrivate::remoteCommand(const QStringList &options) runScheduled(); } -void addDebugInfoTask(unsigned id, const QString &cmd) -{ - dd->m_debugInfoTaskHandler.addTask(id, cmd); -} - void DebuggerPluginPrivate::extensionsInitialized() { // If the CppEditor or QmlJS editor plugin is there, we want to add something to diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index b57b2b85c69..9c67a651a60 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -356,24 +356,6 @@ void GdbEngine::handleResponse(const QString &buff) break; } - if (boolSetting(IdentifyDebugInfoPackages)) { - // From SuSE's gdb: >&"Missing separate debuginfo for ...\n" - // ">&"Try: zypper install -C \"debuginfo(build-id)=c084ee5876ed1ac12730181c9f07c3e027d8e943\"\n" - if (data.startsWith("Missing separate debuginfo for ")) { - m_lastMissingDebugInfo = data.mid(32); - } else if (data.startsWith("Try: zypper")) { - QString cmd = data.mid(4); - - Task task(Task::Warning, - tr("Missing debug information for %1\nTry: %2") - .arg(m_lastMissingDebugInfo).arg(cmd), - FilePath(), 0, Debugger::Constants::TASK_CATEGORY_DEBUGGER_DEBUGINFO); - - TaskHub::addTask(task); - Internal::addDebugInfoTask(task.taskId, cmd); - } - } - break; } diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index 0f8495ddda8..76ca8ea1d93 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -366,7 +366,6 @@ private: ////////// General Interface ////////// // HACK: QString m_currentThread; QString m_lastWinException; - QString m_lastMissingDebugInfo; bool m_expectTerminalTrap = false; bool usesExecInterrupt() const; bool usesTargetAsync() const; diff --git a/src/plugins/debugger/gdb/gdboptionspage.cpp b/src/plugins/debugger/gdb/gdboptionspage.cpp index 2fd3c8de87f..ff4b503e2fb 100644 --- a/src/plugins/debugger/gdb/gdboptionspage.cpp +++ b/src/plugins/debugger/gdb/gdboptionspage.cpp @@ -153,14 +153,6 @@ GdbOptionsPageWidget::GdbOptionsPageWidget() "GDB shows by default AT&&T style disassembly." "")); - auto checkBoxIdentifyDebugInfoPackages = new QCheckBox(groupBoxGeneral); - checkBoxIdentifyDebugInfoPackages->setText(GdbOptionsPage::tr("Create tasks from missing packages")); - checkBoxIdentifyDebugInfoPackages->setToolTip(GdbOptionsPage::tr( - "

Attempts to identify missing debug info packages " - "and lists them in the Issues output pane.

" - "Note: This feature needs special support from the Linux " - "distribution and GDB build and is not available everywhere.

")); - QString howToUsePython = GdbOptionsPage::tr( "

To execute simple Python commands, prefix them with \"python\".

" "

To execute sequences of Python commands spanning multiple lines " @@ -233,7 +225,6 @@ GdbOptionsPageWidget::GdbOptionsPageWidget() formLayout->addRow(checkBoxLoadGdbInit); formLayout->addRow(checkBoxLoadGdbDumpers); formLayout->addRow(checkBoxIntelFlavor); - formLayout->addRow(checkBoxIdentifyDebugInfoPackages); auto startLayout = new QGridLayout(groupBoxStartupCommands); startLayout->addWidget(textEditStartupCommands, 0, 0, 1, 1); @@ -255,7 +246,6 @@ GdbOptionsPageWidget::GdbOptionsPageWidget() group.insert(action(AdjustBreakpointLocations), checkBoxAdjustBreakpointLocations); group.insert(action(GdbWatchdogTimeout), spinBoxGdbWatchdogTimeout); group.insert(action(IntelFlavor), checkBoxIntelFlavor); - group.insert(action(IdentifyDebugInfoPackages), checkBoxIdentifyDebugInfoPackages); group.insert(action(UseMessageBoxForSignals), checkBoxUseMessageBoxForSignals); group.insert(action(SkipKnownFrames), checkBoxSkipKnownFrames);