Debugger: Fix off by one error in report generator.
- The disassembly dump would consequently stop at the instruction prior to the actual crash culprit, and also erroneously mark it as such.
This commit is contained in:
@@ -566,9 +566,9 @@ DebugReportGenerator::_DumpFunctionDisassembly(BString& _output,
|
|||||||
SourceLocation location = statement->StartSourceLocation();
|
SourceLocation location = statement->StartSourceLocation();
|
||||||
|
|
||||||
_output << "\t\t\tDisassembly:\n";
|
_output << "\t\t\tDisassembly:\n";
|
||||||
for (int32 i = 0; i < location.Line(); i++) {
|
for (int32 i = 0; i <= location.Line(); i++) {
|
||||||
_output << "\t\t\t\t" << code->LineAt(i);
|
_output << "\t\t\t\t" << code->LineAt(i);
|
||||||
if (i == location.Line() - 1)
|
if (i == location.Line())
|
||||||
_output << " <--";
|
_output << " <--";
|
||||||
_output << "\n";
|
_output << "\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user