Debugger: Inherit register field access rights from register

... if this field has not the access rights information.

Fixes: QTCREATORBUG-23542
Change-Id: I3440fa0fd34dc91164eefcafc1ba74e852e103b9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2020-01-30 17:17:49 +03:00
parent 93896c9832
commit 6b10a1ad56

View File

@@ -595,6 +595,12 @@ static void handleField(QXmlStreamReader &in, PeripheralRegister &reg)
in.skipCurrentElement();
}
}
// Inherit the field access from the register access if the filed
// has not the access rights description.
if (fld.access == PeripheralRegisterAccess::Unknown)
fld.access = reg.access;
reg.fields.push_back(fld);
}