forked from qt-creator/qt-creator
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:
@@ -595,6 +595,12 @@ static void handleField(QXmlStreamReader &in, PeripheralRegister ®)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user