title: What is the difference between gcc -ggdb and gcc -g
body: <p>When I use gcc to compile C programs
  I usually use <code>-g</code> to get some debug information into the elf file 
  so that gdb can help me if needed.</p>
  
  <p>However, I noticed that some programs use <code>-ggdb</code>, since it's supposed to make the 
  debug info more gdb friendly. </p>
  
  <p>How do they differ and which is recommended to use?</p>
  
  <hr>
  
  <p><em>Note:</em> A link to the options for Debugging Your Program or GCC, <a href="http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options" rel="noreferrer">http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options</a></p>