aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp17
-rw-r--r--src/plugins/debugger/debuggeractions.h1
-rw-r--r--src/plugins/debugger/gdb/gdboptionspage.cpp64
3 files changed, 25 insertions, 57 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index d33d667f651..53751908670 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -571,15 +571,13 @@ DebuggerSettings::DebuggerSettings()
page2.registerAspect(&useIndexCache);
page2.registerAspect(&gdbStartupCommands);
page2.registerAspect(&gdbPostAttachCommands);
-
- // Page 3
- page3.registerAspect(&targetAsync);
- page3.registerAspect(&autoEnrichParameters);
- page3.registerAspect(&breakOnWarning);
- page3.registerAspect(&breakOnFatal);
- page3.registerAspect(&breakOnAbort);
- page3.registerAspect(&enableReverseDebugging);
- page3.registerAspect(&multiInferior);
+ page2.registerAspect(&targetAsync);
+ page2.registerAspect(&autoEnrichParameters);
+ page2.registerAspect(&breakOnWarning);
+ page2.registerAspect(&breakOnFatal);
+ page2.registerAspect(&breakOnAbort);
+ page2.registerAspect(&enableReverseDebugging);
+ page2.registerAspect(&multiInferior);
// Page 4
page4.registerAspect(&useDebuggingHelpers);
@@ -624,7 +622,6 @@ DebuggerSettings::DebuggerSettings()
// Collect all
all.registerAspects(page1);
all.registerAspects(page2);
- all.registerAspects(page3);
all.registerAspects(page4);
all.registerAspects(page5);
all.registerAspects(page6);
diff --git a/src/plugins/debugger/debuggeractions.h b/src/plugins/debugger/debuggeractions.h
index a2fa4b761b3..988ebdf5d62 100644
--- a/src/plugins/debugger/debuggeractions.h
+++ b/src/plugins/debugger/debuggeractions.h
@@ -163,7 +163,6 @@ public:
Utils::AspectContainer all; // All
Utils::AspectContainer page1; // General
Utils::AspectContainer page2; // GDB
- Utils::AspectContainer page3; // GDB Extended
Utils::AspectContainer page4; // Locals & Expressions
Utils::AspectContainer page5; // CDB
Utils::AspectContainer page6; // CDB Paths
diff --git a/src/plugins/debugger/gdb/gdboptionspage.cpp b/src/plugins/debugger/gdb/gdboptionspage.cpp
index d41f1b37552..dd99eb67585 100644
--- a/src/plugins/debugger/gdb/gdboptionspage.cpp
+++ b/src/plugins/debugger/gdb/gdboptionspage.cpp
@@ -36,6 +36,12 @@ public:
using namespace Layouting;
DebuggerSettings &s = *debuggerSettings();
+ auto labelDangerous = new QLabel("<html><head/><body><i>" +
+ Tr::tr("The options below give access to advanced<br>"
+ "or experimental functions of GDB.<p>"
+ "Enabling them may negatively impact<br>"
+ "your debugging experience.") + "</i></body></html>");
+
Group general {
title(Tr::tr("General")),
Column {
@@ -49,53 +55,9 @@ public:
s.intelFlavor,
s.usePseudoTracepoints,
s.useIndexCache,
- st
}
};
- Column commands {
- Group {
- title(Tr::tr("Additional Startup Commands")),
- Column { s.gdbStartupCommands }
- },
- Group {
- title(Tr::tr("Additional Attach Commands")),
- Column { s.gdbPostAttachCommands },
- },
- st
- };
-
- Row { general, commands }.attachTo(w);
- });
- }
-};
-
-/////////////////////////////////////////////////////////////////////////
-//
-// GdbOptionsPage2 - dangerous options
-//
-/////////////////////////////////////////////////////////////////////////
-
-// The "Dangerous" options.
-class GdbOptionsPage2 : public Core::IOptionsPage
-{
-public:
- GdbOptionsPage2()
- {
- setId("M.Gdb2");
- setDisplayName(Tr::tr("GDB Extended"));
- setCategory(Constants::DEBUGGER_SETTINGS_CATEGORY);
- setSettings(&debuggerSettings()->page3);
-
- setLayouter([](QWidget *w) {
- auto labelDangerous = new QLabel("<html><head/><body><i>" +
- Tr::tr("The options below give access to advanced "
- "or experimental functions of GDB.<br>Enabling them may negatively "
- "impact your debugging experience.") + "</i></body></html>");
-
- using namespace Layouting;
- DebuggerSettings &s = *debuggerSettings();
-
Group extended {
title(Tr::tr("Extended")),
Column {
@@ -107,10 +69,21 @@ public:
s.breakOnAbort,
s.enableReverseDebugging,
s.multiInferior,
+ st
}
};
- Column { extended, st }.attachTo(w);
+ Group startup {
+ title(Tr::tr("Additional Startup Commands")),
+ Column { s.gdbStartupCommands }
+ };
+
+ Group attach {
+ title(Tr::tr("Additional Attach Commands")),
+ Column { s.gdbPostAttachCommands },
+ };
+
+ Grid { general, extended, br, startup, attach }.attachTo(w);
});
}
};
@@ -120,7 +93,6 @@ public:
void addGdbOptionPages(QList<IOptionsPage *> *opts)
{
opts->push_back(new GdbOptionsPage);
- opts->push_back(new GdbOptionsPage2);
}
} // Debugger::Internal