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:
@@ -176,7 +176,7 @@ ArchitectureX86::DisassembleCode(FunctionDebugInfo* function,
|
|||||||
instructionSize, breakpointAllowed) == B_OK) {
|
instructionSize, breakpointAllowed) == B_OK) {
|
||||||
Statement* statement = new(std::nothrow) ContiguousStatement(
|
Statement* statement = new(std::nothrow) ContiguousStatement(
|
||||||
SourceLocation(lineIndex), SourceLocation(lineIndex + 1),
|
SourceLocation(lineIndex), SourceLocation(lineIndex + 1),
|
||||||
TargetAddressRange(instructionAddress, instructionAddress));
|
TargetAddressRange(instructionAddress, instructionSize));
|
||||||
if (statement == NULL)
|
if (statement == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user