aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/cdb
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2024-01-28 19:20:35 +0100
committerJarek Kobus <[email protected]>2024-01-29 08:44:13 +0000
commit8b8e360ba8121868a99e736e8ad69855e558012a (patch)
tree375ec14b245e21f5b7a3f5f6315576f346d06a87 /src/plugins/debugger/cdb
parentd39f42c1f6e32181a4f3f735dd53e14575254e2d (diff)
CdbEngine: Keep multiple arg() for int arguments
Otherwise the second arg is interpreted as fieldWidth. Change-Id: I6105386aa743bf172eaef4bafe6a350381c76ce5 Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/debugger/cdb')
-rw-r--r--src/plugins/debugger/cdb/cdbengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 68a9c9f2301..ba3cdb00d2a 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -3060,7 +3060,8 @@ void CdbEngine::watchPoint(const QPoint &p)
m_watchPointX = p.x();
m_watchPointY = p.y();
DebuggerCommand cmd("widgetat", ExtensionCommand);
- cmd.args = QString("%1 %2").arg(p.x(), p.y());
+ // Keep 2 separate .arg(), since we pass ints there.
+ cmd.args = QString("%1 %2").arg(p.x()).arg(p.y());
runCommand(cmd);
}