summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/gdb/gdbengine.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-05-12 16:51:12 +0200
committerhjk <hjk@qt.io>2023-05-12 16:04:38 +0000
commitc85b72000f2861247ba832b5a22cb3746bd709ca (patch)
treeef0181f816a3a197a89863084234e5097d817b73 /src/plugins/debugger/gdb/gdbengine.cpp
parent30af7a9503c3848ac9cb35e1aebfc28d51f41d07 (diff)
downloadqt-creator-c85b72000f2861247ba832b5a22cb3746bd709ca.tar.gz
All: Use the shorter access to aspect values in a few places
Change-Id: Ie0ff0e4e1cf4c2750897ea733dfccb743f44fa93 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/debugger/gdb/gdbengine.cpp')
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 5ea6162a64..aa84c6d2d7 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -801,7 +801,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
int GdbEngine::commandTimeoutTime() const
{
- const int time = debuggerSettings()->gdbWatchdogTimeout.value();
+ const int time = debuggerSettings()->gdbWatchdogTimeout();
return 1000 * qMax(20, time);
}
@@ -1016,7 +1016,7 @@ void GdbEngine::updateAll()
{
//PENDING_DEBUG("UPDATING ALL\n");
QTC_CHECK(state() == InferiorUnrunnable || state() == InferiorStopOk);
- DebuggerCommand cmd(stackCommand(debuggerSettings()->maximalStackDepth.value()));
+ DebuggerCommand cmd(stackCommand(debuggerSettings()->maximalStackDepth()));
cmd.callback = [this](const DebuggerResponse &r) { handleStackListFrames(r, false); };
runCommand(cmd);
stackHandler()->setCurrentIndex(0);
@@ -2616,13 +2616,13 @@ void GdbEngine::insertBreakpoint(const Breakpoint &bp)
"QTC_DEBUGGER_PYTHON_VERBOSE");
const DebuggerSettings &s = *debuggerSettings();
cmd.arg("passexceptions", alwaysVerbose);
- cmd.arg("fancy", s.useDebuggingHelpers.value());
- cmd.arg("autoderef", s.autoDerefPointers.value());
- cmd.arg("dyntype", s.useDynamicType.value());
- cmd.arg("qobjectnames", s.showQObjectNames.value());
+ cmd.arg("fancy", s.useDebuggingHelpers());
+ cmd.arg("autoderef", s.autoDerefPointers());
+ cmd.arg("dyntype", s.useDynamicType());
+ cmd.arg("qobjectnames", s.showQObjectNames());
cmd.arg("nativemixed", isNativeMixedActive());
- cmd.arg("stringcutoff", s.maximalStringLength.value());
- cmd.arg("displaystringlimit", s.displayStringLimit.value());
+ cmd.arg("stringcutoff", s.maximalStringLength());
+ cmd.arg("displaystringlimit", s.displayStringLimit());
cmd.arg("spec", breakpointLocation2(requested));
cmd.callback = [this, bp](const DebuggerResponse &r) { handleTracepointInsert(r, bp); };