Commit 7ab3981b authored by hjk's avatar hjk

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

parent eb422394
......@@ -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));
}
}
......
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