debugger: use 'struct QWidget' to make gdb happy. Again.

This commit is contained in:
hjk
2011-01-17 16:27:34 +01:00
parent 75bc676c52
commit fb25e295ef

View File

@@ -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);
}