diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/debugger/debuggercore.h | 2 | ||||
| -rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 8 | ||||
| -rw-r--r-- | src/plugins/debugger/gdb/gdboptionspage.cpp | 17 |
3 files changed, 7 insertions, 20 deletions
diff --git a/src/plugins/debugger/debuggercore.h b/src/plugins/debugger/debuggercore.h index 5902853714..d7aee4b7db 100644 --- a/src/plugins/debugger/debuggercore.h +++ b/src/plugins/debugger/debuggercore.h @@ -86,8 +86,6 @@ QStringList stringListSetting(int code); QMessageBox *showMessageBox(int icon, const QString &title, const QString &text, int buttons = 0); -bool isReverseDebuggingEnabled(); - QAction *addAction(QMenu *menu, const QString &display, bool on, const std::function<void()> &onTriggered = {}); QAction *addAction(QMenu *menu, const QString &d1, const QString &d2, bool on, diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 21a45c293d..b68d3eb5f6 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -2021,14 +2021,6 @@ void addDebugInfoTask(unsigned id, const QString &cmd) dd->m_debugInfoTaskHandler.addTask(id, cmd); } -bool isReverseDebuggingEnabled() -{ - return true; - - static bool enabled = qEnvironmentVariableIsSet("QTC_DEBUGGER_ENABLE_REVERSE"); - return enabled; -} - 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/gdboptionspage.cpp b/src/plugins/debugger/gdb/gdboptionspage.cpp index f279f7514f..8bf697c2e1 100644 --- a/src/plugins/debugger/gdb/gdboptionspage.cpp +++ b/src/plugins/debugger/gdb/gdboptionspage.cpp @@ -347,16 +347,13 @@ GdbOptionsPageWidget2::GdbOptionsPageWidget2() checkBoxBreakOnAbort->setText(CommonOptionsPage::msgSetBreakpointAtFunction("abort")); checkBoxBreakOnAbort->setToolTip(CommonOptionsPage::msgSetBreakpointAtFunctionToolTip("abort")); - QCheckBox *checkBoxEnableReverseDebugging = nullptr; - if (isReverseDebuggingEnabled()) { - checkBoxEnableReverseDebugging = new QCheckBox(groupBoxDangerous); - checkBoxEnableReverseDebugging->setText(GdbOptionsPage::tr("Enable reverse debugging")); - checkBoxEnableReverseDebugging->setToolTip(GdbOptionsPage::tr( - "<html><head/><body><p>Enables stepping backwards.</p><p>" - "<b>Note:</b> This feature is very slow and unstable on the GDB side. " - "It exhibits unpredictable behavior when going backwards over system " - "calls and is very likely to destroy your debugging session.</p></body></html>")); - } + auto checkBoxEnableReverseDebugging = new QCheckBox(groupBoxDangerous); + checkBoxEnableReverseDebugging->setText(GdbOptionsPage::tr("Enable reverse debugging")); + checkBoxEnableReverseDebugging->setToolTip(GdbOptionsPage::tr( + "<html><head/><body><p>Enables stepping backwards.</p><p>" + "<b>Note:</b> This feature is very slow and unstable on the GDB side. " + "It exhibits unpredictable behavior when going backwards over system " + "calls and is very likely to destroy your debugging session.</p></body></html>")); auto checkBoxMultiInferior = new QCheckBox(groupBoxDangerous); checkBoxMultiInferior->setText(GdbOptionsPage::tr("Debug all child processes")); |
