<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><div dir="ltr">On Tue, Apr 1, 2014 at 1:22 PM, Esteban Lorenzano&nbsp;<span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>&gt;</span>&nbsp;wrote:<br>

</div></div><div class="gmail_quote" style="font-family:arial,sans-serif;font-size:12.800000190734863px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hi,<br><br>I use CDT regularly (bah, its been like 6 months that I don&rsquo;t, but I use it when I need it :) )<br>It is not a problem with the current configuration (and debug flags), but is a bit of work for adding the source paths.<br>

<br>I do not know if it can be done easier&hellip; would be cool, but I don&rsquo;t know how feasible :)<br><br>Esteban<br></blockquote><div><br></div><div><div>Now, I managed to get GDB to work with my build.</div><div><br></div><div>

I had to change the compile options a bit (-g -O0) in the code generation and add a couple of source folders in the .gdbinit file to get the sources to show:</div><div><br></div><div><div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/src/plugins</div>

<div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/src/vm</div><div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/win32</div><div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/Cross</div>

<div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/Cross/vm</div><div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/Cross/plugins</div><div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/win32/vm</div>

<div>directory C:/MinGW/msys/1.0/home/User/PharoVmHeadlessWin/pharo-vm/platforms/win32/plugins</div><div>break sqMain</div></div><div><br></div><div>Now it works.</div><div><br></div><div>But that&#39;s not really funny to work like that, so, back to the UI integration.</div>

<div><br></div><div>Esteban, do you debug with CDT with the current flags?&nbsp;</div><div><br></div><div><div>compilerFlagsRelease</div><div><span style="white-space:pre-wrap">        </span>&quot;Define NDEBUG for production to exclude asserts &quot;</div>

<div><span style="white-space:pre-wrap">        </span>^ &#39;-g0 -O2 -march=pentium4 -momit-leaf-frame-pointer -maccumulate-outgoing-args -funroll-loops &#39;,</div><div><span style="white-space:pre-wrap">        </span>&#39;-DNDEBUG -DDEBUGVM=0&#39;</div>

</div><div><br></div><div><br></div><div>for debugging I&#39;ve set things to:</div><div><br></div><div><div>compilerFlagsDebug</div><div><span style="white-space:pre-wrap">        </span>&quot;Define NDEBUG for production to exclude asserts &quot;</div>

<div><span style="white-space:pre-wrap">        </span>^ &#39;-g -O0 -march=pentium4 &nbsp;&#39;,</div><div><span style="white-space:pre-wrap">        </span>&#39;-DNDEBUG -DDEBUGVM=0&#39;</div></div><div><br></div><div>and</div><div><br></div>

<div><div>compilerFlags</div><div><span style="white-space:pre-wrap">        </span>&quot;depends on config ...&quot;</div><div><span style="white-space:pre-wrap">        </span>^ self commonCompilerFlags, &#39; &#39; , self compilerFlagsDebug &quot;was Release&quot;</div>

</div><div><br></div><div>I&#39;ve checked that the flags were right with building with</div><div><br></div><div>make VERBOSE=1</div><div><br></div><div>in the build.sh</div><div><br></div><div>I am interested in looking at the startup process for the VM and getting a real windows headless system.</div>

<div>The current one isn&#39;t working at the moment. Also, the pharo as a service should work again (is now with -DNO_SERVICE in the compilation)</div><div><br></div><div>I&#39;ve noticed that the OSX Version supports debug options, but not Windows. Am I right?</div>

<div><br></div><div>Phil</div></div></div>
<br>
</blockquote></div><br></div></div>