Commit 945c2119 authored by hjk's avatar hjk
Browse files

debugger: fall back to raw disassembly if mixed display fails due to

"unreadable" memory
parent ecd475c9
......@@ -3583,7 +3583,8 @@ void GdbEngine::handleFetchDisassemblerByLine(const GdbResponse &response)
} else {
// 536^error,msg="mi_cmd_disassemble: Invalid line number"
QByteArray msg ="msg").data();
if (msg == "mi_cmd_disassemble: Invalid line number")
if (msg == "mi_cmd_disassemble: Invalid line number"
|| msg.startsWith("Cannot access memory at address"))
fetchDisassemblerByAddress(ac.agent, true);
showStatusMessage(tr("Disassembler failed: %1").arg(QString::fromLocal8Bit(msg)), 5000);
Supports Markdown
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