I think the distro already did this and to debug the current issue<br>(IDE freezes or abruptly exits), I think I need to rebuild lazarus <br>from source and use the executables before the debugging<br>info is stripped.<br>
<br><br><div class="gmail_quote">2008/4/25 Adrian De Armas <<a href="mailto:adearmas@gmail.com">adearmas@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am just copying an email written by Fabio Dell'Aria some time ago where this issue was discused.<br>Hope you find it usefull.<br><br>Regards<br><br>-------------------------MAIL BEGIN---------------------------<br>Hi to all,<br>
<br>all we know how many new users do not uses lazarus because it create too BIG compiled files.<br><br>We know that:<br><br>1)...the additional options are needed to can debug the project;<br>2)...just do a simple "strip --strip-all filename" reduce drastically the final size (an empty project go from 12.5Mb to 1.2 Mb).<br>
<br>I think to have found a really simple solution to can continue to debug our project with a really little size increasing.<br><br>Just remove all the debug-info from all the LCL object files to reduce the final compiled file from 12.5Mb to ONLY 2Mb (on Windows).<br>
<br>We'll can continue to debug our projects but we'll CANNOT debug the LCL code.<br><br>To obtain this little miracle just use the following command (from the shell):<br><br><br>For Windows:<br><br>FOR /R "Your_Lazarus_Folder" %v IN (*.o) DO strip --strip-debug "%~fv"<br>
<br><br>For Linux:<br><br>sudo find /your_lazarus_folder -name *.o -exec strip --strip-debug {} \;<br><br><br>What do you think about? ;)<br><font color="#888888"><br>-- <br>Best regards...<br><br>Fabio Dell'Aria.<br>
<br>-------------------------MAIL END--------------------<br>
<br><br></font><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Fri, Apr 25, 2008 at 11:35 AM, drew einhorn <<a href="mailto:drew.einhorn@gmail.com" target="_blank">drew.einhorn@gmail.com</a>> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<div>On Thu, Apr 24, 2008 at 11:59 AM, Mattias Gärtner<br>
<<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>> wrote:<br>
> Zitat von drew einhorn <<a href="mailto:drew.einhorn@gmail.com" target="_blank">drew.einhorn@gmail.com</a>>:<br>
<br>
</div><div>> Run lazarus via gdb, reproduce the freeze, create a backtrace and send it. So<br>
> this bug can be fixed.<br>
><br>
<br>
</div>Hmm. I'm running Lazarus on Ubuntu not sure if I downloaded the .debs<br>
from the web<br>
or if they were automatically retrieved from a repository.<br>
<br>
Any way the executables are stripped and do not have any debugging info. Do<br>
I need to rebuild lazarus from source first?<br>
<br>
--<br>
<font color="#888888">Drew Einhorn<br>
</font></div></div><div><div></div><div><br><div class="Ih2E3d">
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org" target="_blank">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></div></blockquote></div><br>
<br>_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Drew Einhorn