help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] ContextPart>>printOn: prints incorrect line


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] ContextPart>>printOn: prints incorrect line
Date: Fri, 15 Jul 2011 18:33:29 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/15/2011 06:03 PM, Ladislav Marek wrote:
Patch should be applied in DebugTools package too (just saying to be sure).

diff --git a/packages/debug/DebugTools.st b/packages/debug/DebugTools.st
index cb41c3b..f7f8695 100644
--- a/packages/debug/DebugTools.st
+++ b/packages/debug/DebugTools.st
@@ -48,7 +48,7 @@ pointer bytecodes to line numbers.'>
             ifTrue: [MethodLineMapCache := WeakKeyIdentityDictionary new].
         lineMap := MethodLineMapCache at: method
                     ifAbsentPut: [method sourceCodeMap].
-       ^lineMap at: aContext ip + 1 ifAbsent: [1]
+       ^lineMap at: aContext ip - 1 ifAbsent: [1]
      ]

      Debugger class>>  on: aProcess [


Right, thanks!

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]