From fb25e295efe2730b637a3479fb2a626f7e52323a Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 17 Jan 2011 16:27:34 +0100 Subject: [PATCH] debugger: use 'struct QWidget' to make gdb happy. Again. --- src/plugins/debugger/gdb/gdbengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 0b5fa2ff650..dfb7d9ea209 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3745,7 +3745,7 @@ void GdbEngine::handleWatchPoint(const GdbResponse &response) //const QByteArray ns = ba.mid(posNs, posWidget - posNs); const QByteArray ns = qtNamespace(); const QByteArray type = ns.isEmpty() ? "QWidget*" : ("'" + ns + "QWidget'*"); - const QString exp = _("(*(%1)%2)").arg(_(type)).arg(_(addr)); + const QString exp = _("(*(struct %1)%2)").arg(_(type)).arg(_(addr)); // qDebug() << posNs << posWidget << pos0x << addr << ns << type; watchHandler()->watchExpression(exp); }