<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Ok. How do you debug the code then? GDB is pretty useless with optimized code. Do you guys use tracing of some sort? I'd really like to be able to step through the code. Any help would be appreciated.<br><br>Thanks for the info,<br>Andrew<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Felix Paul Kühne <fkuehne.videolan@googlemail.com><br>To: vlc-devel@videolan.org<br>Sent: Sunday, May 20, 2007 12:34:32 PM<br>Subject: [vlc-devel] Re: Compile VLC for debugging<br><br><div>Hello<br><br>Am 20.05.2007 um 17:24 schrieb Andrew Stone:<br>> I'd also like to know.<br>><br>> ./configure --enable-debug --disable-optimizations<br>><br>> doesn't
 disable optimizations for some reason.<br>That's correct. The debug flag works as expected (it adds debug info,  <br>etc.), but -optimizations is a bit useless, as VLC's code is always  <br>being optimised with our current build system without having the  <br>possibility to change the level by hand. You can only specifically  <br>disable the usage of AltiVec optimisations (for PowerPC CPUs) and  <br>additionally, you may optimise for memory usage (--enable-optimize- <br>memory).<br><br><br>> ----- Original Message ----<br>> From: Herman Schultz <herman.schultz@gmail.com><br><br>> Can you please tell me how can i compile VLC for debugging and how  <br>> can I run VLC to run under a debugger?<br><br>We recommend you to use gdb for debugging VLC. Simply running VLC in  <br>it, is straight forward: "$ gdb ./vlc" (or similar; depending where  <br>your VLC binary is actually
 located). Using gdb is a bit more  <br>complicated, so please have a look at gdb's documentation.<br><br>Regards,<br>Felix<br><br><br>--<br>VideoLAN<br>Felix Paul Kühne<br>Co-Developer of VLC's Mac OS X port<br><a target="_blank" href="http://www.videolan.org/vlc">http://www.videolan.org/vlc</a><br>--<br>This is the vlc-devel mailing-list, see <a target="_blank" href="http://www.videolan.org/vlc/">http://www.videolan.org/vlc/</a><br>To unsubscribe, please read <a target="_blank" href="http://developers.videolan.org/lists.html">http://developers.videolan.org/lists.html</a><br><br></div></div><br></div></div></body></html>