<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;">I set optim=no, but that still doesn't work. Values keep being optimized out.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Damien Fouilleul <damien.fouilleul@laposte.net><br>To: vlc-devel@videolan.org<br>Sent: Monday, May 21, 2007 5:43:26 AM<br>Subject: [vlc-devel] Re: Compile VLC for debugging<br><br><div>To debug with GDB, just edit vlc-config and rename optim=yes to <br>optim=no, and re-build the part of VLC you want to debug.<br>If like me, you want to use hard-breakpoints, i.e break the program into <br>the debugger without relying on GDB breakpoints, just add the following <br>in your code:<br>- DebugBreak() if you are debugging on Windows<br>-
 raise(SIGTRAP) if are debugging on Linux, MacOSX, etc...<br><br>Damien<br><br>Felix Paul Kühne wrote:<br>><br>> Am 20.05.2007 um 20:24 schrieb Rémi Denis-Courmont:<br>><br>>> Le dimanche 20 mai 2007, Andrew Stone a écrit :<br>>>> Ok. How do you debug the code then? GDB is pretty useless with<br>>>> optimized code.<br>>><br>>> From my experience, gdb is pretty useless with VLC regardless of<br>>> optimization. I personnaly use valgrind.<br>> ... while for my needs, gdb has always been sufficient, even with <br>> optimisations, but I was never able to test valgrind, as it is <br>> Linux-only for now.<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>><br>><br><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>