title: Using -g and -O2 options in gcc
body: <p>Does anybody experience mixing -g (debugging symbols) and -O2 (best safe optimization) with gcc compiler?<br>
  I have to debug crashes of a release program distributed to final users that could send me back the core file.<br>
  I've always used to call:</p>
  
  <p>gdb &lt;&lt; myprogram >> &lt;&lt; core file >></p>
  
  <p>and see where the trouble is. Now I can just see the call-trace but having no debugging symbols I'm quite in trouble.</p>
  
  <p>Any idea?</p>