Thanks to everybody. At the end it was the problem Michael said. /usr/local/bin/squeak was just a script but the executable was in <br><br>/usr/local/lib/squeak/3.11.13-2135/squeakvm<br><br>Now it works perfect. I can gdb the Squeak VM!!<br>
<br>Thanks a lot.<br><br>Mariano<br><br><div class="gmail_quote">On Sun, Mar 28, 2010 at 10:04 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <br><br><br><div class="gmail_quote">On Sun, Mar 28, 2010 at 3:59 PM, Michael van der Gulik <span dir="ltr">&lt;<a href="mailto:mikevdg@gmail.com" target="_blank">mikevdg@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
On Mon, Mar 29, 2010 at 9:10 AM, Mariano Martinez Peck<br>
&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Mar 27, 2010 at 5:57 PM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
</div><div>&gt;&gt; Hi Mario,<br>
&gt;&gt;     first you want to compile with debug symbols and perhaps with no optimization.  Second it looks like you need to link with the pthreads library, not juts compile. So you can try e.g.<br>
&gt;&gt; platforms/unix/configure CFLAGS=&quot;-g3 -pthread&quot; LIBS=-lpthread<br>
&gt;&gt; FWIW I routinely use gdb on Mac OS X, linux and windows to debug the Teleplace Cog vm.<br>
&gt;<br>
</div><div>&gt; Thanks Eliot. I tried what you said, but I got another problem now. I configure the VM, with this:<br>
&gt;<br>
&gt; ../unix/cmake/configure --CFLAGS=&quot;-g3 -pthread&quot; --LIBS=-lpthread<br>
&gt;<br>
&gt; Then I make and make install. No problems. SqueakVM works ok and I can open my images.<br>
&gt;<br>
&gt; The problem is with gdb. I tried this:<br>
&gt;<br>
</div>&gt; ubuntu@ubuntu-desktop:~/Pharo/vm/Squeak-3.11.3.2135-pharo-src/build$ gdb squeak<br>
<div>&gt; GNU gdb (GDB) 7.0-ubuntu<br>
&gt; Copyright (C) 2009 Free Software Foundation, Inc.<br>
&gt; License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>&gt;<br>
&gt; This is free software: you are free to change and redistribute it.<br>
&gt; There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;<br>
&gt; and &quot;show warranty&quot; for details.<br>
&gt; This GDB was configured as &quot;i486-linux-gnu&quot;.<br>
&gt; For bug reporting instructions, please see:<br>
&gt; &lt;<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>&gt;...<br>
</div><div>&gt; &quot;/home/ubuntu/Pharo/vm/Squeak-3.11.3.2135-pharo-src/build/squeak&quot;: not in executable format: File format not recognized<br>
&gt; (gdb)<br>
&gt;<br>
&gt;<br>
&gt; And the same happens with gdb ./squeak or gdb /usr/local/bin/squeak  etc...<br>
&gt;<br>
&gt; But squeak IS executable:<br>
&gt;<br>
&gt; ubuntu@ubuntu-desktop:~/Pharo/vm/Squeak-3.11.3.2135-pharo-src/build$ ls -la /usr/local/bin/squeak<br>
&gt; -rwxr-xr-x 1 root root 1791 2010-03-28 21:57 /usr/local/bin/squeak<br>
&gt;<br>
&gt;<br>
</div><div>&gt; So...any ideas what can be the problem ?<br>
<br>
</div>Try opening &quot;squeak&quot; in a text editor. It could be a script that<br>
starts the real VM executable which might be elsewhere.<br></blockquote><div><br></div><div>Doh!  Try myvm/lib/squeak/3.9-7/squeak</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>
Also, a tip: if you&#39;re making VMs, it&#39;s better not to install them in<br>
/usr/local until you&#39;re happy with them being stable and working. Use:<br>
<br>
&gt; ../unix/cmake/configure --CFLAGS=&quot;-g3 -pthread&quot; --LIBS=-lpthread --prefix=~/Pharo/myvm (or something).<br>
&gt; nice make install<br>
<br>
(I assume the configure script takes --prefix like GNU autoconf does?)<br>
<br>
Also, if you just want to see how the interpreter works, you can run<br>
it inside Squeak:<br>
<br>
<a href="http://n4.nabble.com/Simulate-3-4-with-InterpreterSimulator-td1678060.html#a1694237" target="_blank">http://n4.nabble.com/Simulate-3-4-with-InterpreterSimulator-td1678060.html#a1694237</a><br>
<br>
Gulik.<br>
<font color="#888888"><br>
--<br>
<a href="http://gulik.pbwiki.com/" target="_blank">http://gulik.pbwiki.com/</a><br>
</font></blockquote></div><br>
<br></blockquote></div><br>