help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Accept method changes in debugger


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Accept method changes in debugger
Date: Sun, 26 Jan 2014 21:23:02 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Jan 26, 2014 at 09:15:14PM +0100, Holger Hans Peter Freyther wrote:
> On Mon, Oct 21, 2013 at 11:29:06AM +0200, Gwenaƫl Casaccio wrote:
> 
> > +        method := context receiver class >> context method selector.
> 
> and I think "context receiver class >> context method selector" will
> not work for receiver being "Integer" and method being halt. I think
> you need to use >>#lookupSelector: here.

appears to do the trick.

diff --git a/packages/debug/DebugTools.st b/packages/debug/DebugTools.st
index 2125cc6..4d06c69 100644
--- a/packages/debug/DebugTools.st
+++ b/packages/debug/DebugTools.st
@@ -150,7 +150,7 @@ pointer bytecodes to line numbers.'>
         context isBlock ifTrue: [ context outerContext isNil ifTrue: [ ^ self 
].
                                   context := context outerContext ].
 
-        method := context receiver class >> context method selector.
+        method := context receiver class lookupSelector: context method 
selector.
 
         newContext := MethodContext new: method stackDepth.
 






reply via email to

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