Commit 5074001b authored by hjk's avatar hjk
Browse files

debugger: fix colouring of unchanged register contents with MSVC

Reviewed-by: Alessandro Portale
Task-number: QTCREATORBUG-2119
parent f3240332
......@@ -1274,9 +1274,15 @@ void CdbEngine::reloadRegisters()
qDebug() << Q_FUNC_INFO << intBase;
QString errorMessage;
const Registers registers = getRegisters(m_d->interfaces().debugControl, m_d->interfaces().debugRegisters, &errorMessage, intBase);
const Registers oldRegisters = registerHandler()->registers();
Registers registers = getRegisters(m_d->interfaces().debugControl,
m_d->interfaces().debugRegisters, &errorMessage, intBase);
if (registers.isEmpty() && !errorMessage.isEmpty())
warning(msgFunctionFailed("reloadRegisters" , errorMessage));
for (int i = qMin(registers.size(), oldRegisters.size()); --i >= 0; ) {
Register &reg = registers[i];
reg.changed = (reg.value != oldRegisters.at(i).value);
}
registerHandler()->setRegisters(registers);
}
......
Markdown is supported
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