Commit 0be8e30b authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix current line in assembly listing

Reviewed-by: con
parent d00dc3c2
......@@ -346,7 +346,7 @@ static QPair<int, int> lineNumberOfAddress(const QString &disassembly, quint64 a
const QString line = disassembly.mid(pos, endOfLinePos - pos);
if (DisassemblerViewAgent::addressFromDisassemblyLine(line) == address)
return QPair<int, int>(lineNumber, pos);
pos = endOfLinePos;
pos = endOfLinePos + 1;
}
return QPair<int, int>(-1, -1);;
}
......
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