Passed incorrect instruction size to Statement constructor.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31167 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-06-21 23:27:33 +00:00
parent e50cd9e51a
commit 470c2c49a9
@@ -176,7 +176,7 @@ ArchitectureX86::DisassembleCode(FunctionDebugInfo* function,
instructionSize, breakpointAllowed) == B_OK) {
Statement* statement = new(std::nothrow) ContiguousStatement(
SourceLocation(lineIndex), SourceLocation(lineIndex + 1),
TargetAddressRange(instructionAddress, instructionAddress));
TargetAddressRange(instructionAddress, instructionSize));
if (statement == NULL)
return B_NO_MEMORY;