forked from qt-creator/qt-creator
debugger: fix wrong access to the disassembler agent in the non-mixed case
(cherry picked from commit 7ab3981b6b
)
This commit is contained in:
@@ -4131,12 +4131,12 @@ void GdbEngine::handleFetchDisassemblerByAddress0(const GdbResultRecord &record,
|
|||||||
const QVariant &cookie)
|
const QVariant &cookie)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
DisassemblerViewAgent *agent = (DisassemblerViewAgent *)cookie.toULongLong(&ok);
|
DisassemblerAgentCookie ac = cookie.value<DisassemblerAgentCookie>();
|
||||||
QTC_ASSERT(agent, return);
|
QTC_ASSERT(ac.agent, return);
|
||||||
|
|
||||||
if (record.resultClass == GdbResultDone) {
|
if (record.resultClass == GdbResultDone) {
|
||||||
GdbMi lines = record.data.findChild("asm_insns");
|
GdbMi lines = record.data.findChild("asm_insns");
|
||||||
agent->setContents(parseDisassembler(lines));
|
ac.agent->setContents(parseDisassembler(lines));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user