From 470c2c49a961e62df47024d8bb95c642e7a106fb Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 21 Jun 2009 23:27:33 +0000 Subject: [PATCH] Passed incorrect instruction size to Statement constructor. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31167 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/arch/x86/ArchitectureX86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;