Commit 69fb75b6 authored by hjk's avatar hjk
Browse files

debugger: fix 2.x regression: allow assignment to structure members

parent 991aceb0
......@@ -602,8 +602,21 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
case ExpressionRole:
return data.exp;
case ExpressionRole: {
if (!data.exp.isEmpty())
return data.exp;
if (!data.addr.isEmpty() && !data.type.isEmpty()) {
bool ok;
const quint64 addr = data.addr.toULongLong(&ok, 16);
if (ok && addr)
return QString("*(%1*)%2").arg(data.type).arg(addr);
WatchItem *parent = item->parent;
if (parent && !parent->exp.isEmpty())
return QString("(%1).%2")
return QVariant();
case INameRole:
return data.iname;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment