You are lucky that since your problem is in the startup list, then the CompiledMethod was not yet converted to machine code. Because if it was, then the method execution does NOT go by #commonSend: but rather from a different place. So be careful that that way you are NOT intercepting all times such method is executed :)<br>
<br><div class="gmail_quote">On Mon, Dec 5, 2011 at 9:37 PM, Luc Fabresse <span dir="ltr">&lt;<a href="mailto:luc.fabresse@gmail.com">luc.fabresse@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Really nice!<div>Thanks Sean.</div><div><br></div><div>#Luc<br>
<br><br><div class="gmail_quote">2011/12/5 Sean P. DeNigris <span dir="ltr">&lt;<a href="mailto:sean@clipperadams.com" target="_blank">sean@clipperadams.com</a>&gt;</span><div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The full procedure I followed was:<br>
1. Download (from Jenkins):<br>
  a. the cog source code from Jenkins<br>
<a href="https://ci.lille.inria.fr/pharo/view/Cog/job/Cog%20Git%20Tracker%20%28blessed%29/lastSuccessfulBuild/artifact/cog.tar.gz" target="_blank">https://ci.lille.inria.fr/pharo/view/Cog/job/Cog%20Git%20Tracker%20(blessed)/lastSuccessfulBuild/artifact/cog.tar.gz</a><br>


  b. the vmmaker image<br>
<a href="https://ci.lille.inria.fr/pharo/view/Cog/job/Cog%20Git%20Tracker%20%28blessed%29/lastSuccessfulBuild/artifact/vmmaker-image.zip" target="_blank">https://ci.lille.inria.fr/pharo/view/Cog/job/Cog%20Git%20Tracker%20(blessed)/lastSuccessfulBuild/artifact/vmmaker-image.zip</a><br>


2. Setup folders<br>
  a. Unzip cog<br>
  b. Extract the vmmaker image files (image, changes, source) to cog/image<br>
3. Create (Smalltalk part of) hook to skip selector -<br>
CoInterpreter&gt;&gt;commonSend should look like <a href="https://gist.github.com/1434823" target="_blank">https://gist.github.com/1434823</a><br>
4. Generate (Slang and CMake configuration info)<br>
  In the vmmaker image, doIt:<br>
        CogCocoaIOSConfig new &quot;Cocoa Jit&quot;<br>
                addExternalPlugins: #( FT2Plugin );<br>
                generateForDebug; &quot;will be a debug build&quot;<br>
                generateSources; &quot;Slang -&gt; C&quot;<br>
                generate. &quot;CMake configuration&quot;<br>
4. Configure (in this case for Xcode)<br>
  a. From command line, &quot;cd cog/build; cmake -G Xcode&quot;<br>
  b. For Lion: In Xcode, choose gcc as project compiler (project will be in<br>
pwd when you did the CMake i.e. cog/build)<br>
<a href="http://forum.world.st/file/n4161823/Screen_Shot_2011-12-05_at_1.52.24_PM.png" target="_blank">http://forum.world.st/file/n4161823/Screen_Shot_2011-12-05_at_1.52.24_PM.png</a><br>
5. Create (C part of) hook to skip selector<br>
  a. In Xcode, do a text search for &quot;skipMe&quot;, which you&#39;ll find in<br>
gcc3x-cointerp.c<br>
  b. Replace the first branch of the boilerplate conditional to look like<br>
<a href="https://gist.github.com/1434683" target="_blank">https://gist.github.com/1434683</a> (replace selectorToSkip with your selector)<br>
6. Build &amp; Run<br>
  a. Select CogVM from the &quot;Scheme&quot; dropdown<br>
  b. Click the &quot;Run&quot; button<br>
<br>
Your image should run normally (but slowly), skipping the requested<br>
selector. You can even put in some breakpoints and play.<br>
<span><font color="#888888"><br>
--<br>
View this message in context: <a href="http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-tp3800729p4161823.html" target="_blank">http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-tp3800729p4161823.html</a><br>


</font></span><div><div>Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.<br>
_______________________________________________<br>
VM-beginners mailing list<br>
<a href="mailto:VM-beginners@lists.squeakfoundation.org" target="_blank">VM-beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners</a><br>
</div></div></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
VM-beginners mailing list<br>
<a href="mailto:VM-beginners@lists.squeakfoundation.org">VM-beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>