diff --git a/src/apps/debugger/arch/x86/ArchitectureX86.cpp b/src/apps/debugger/arch/x86/ArchitectureX86.cpp index 78943f356a..c2dfc6f7ca 100644 --- a/src/apps/debugger/arch/x86/ArchitectureX86.cpp +++ b/src/apps/debugger/arch/x86/ArchitectureX86.cpp @@ -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;