Probably not crazy but stupid or impossible to achieve...but anyway, I want to ask..<br><br>Scenario: I find myself navigating the VMMaker code (SLANG) and I want to put a &quot;self halt&quot; somewhere there. Forget the simulator for the moment. So...I need to go to C, and &quot;translate in my mind&quot; what that part of SLANG should look like in C, and search it in the C code. XCode is FAAAR to slow to browe the interp.c . Morever, with inlined methods it is even more difficult to find... <br>
<br>Anyway, I was thinking how cool could be to create breakpoints from VMMaker. I think it is not possible to put breakpoints in C code, but what about doing something like:<br><br>Interpreter &gt;&gt; haltVM<br>&quot;find a better name for this method&quot;<br>
self cCode: &#39;raise(SIGINT);
&#39;<br><br>Of course, we need to add a <br><div id=":14y" dir="ltr" class="kl">#include &lt;csignal&gt; // or signal.h if C code<br><br>I have NO IDEA the implicance or side effects of doing this. I haven&#39;t tried either. <br>
</div><br>And it is complicated to do it cross platform..etc. Here is a link to do more or less this idea:  <a href="http://stackoverflow.com/questions/4326414/set-breakpoint-in-c-or-c-code-programmatically-for-gdb-on-linux">http://stackoverflow.com/questions/4326414/set-breakpoint-in-c-or-c-code-programmatically-for-gdb-on-linux</a><br>
<br>What I want is that if we are running with GDB and the VM calls haltVM()  then the GDB is paused so that I can do bt, etc...<br><br>What do you think?<br><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
<br>