debugger: fix wrong access to the disassembler agent in the non-mixed case

(cherry picked from commit 7ab3981b6b)
This commit is contained in:
hjk
2009-08-18 11:34:26 +02:00
committed by con
parent 0c4599671c
commit c2346f3ead

View File

@@ -4131,12 +4131,12 @@ void GdbEngine::handleFetchDisassemblerByAddress0(const GdbResultRecord &record,
const QVariant &cookie)
{
bool ok = true;
DisassemblerViewAgent *agent = (DisassemblerViewAgent *)cookie.toULongLong(&ok);
QTC_ASSERT(agent, return);
DisassemblerAgentCookie ac = cookie.value<DisassemblerAgentCookie>();
QTC_ASSERT(ac.agent, return);
if (record.resultClass == GdbResultDone) {
GdbMi lines = record.data.findChild("asm_insns");
agent->setContents(parseDisassembler(lines));
ac.agent->setContents(parseDisassembler(lines));
}
}