title: gcc: what's the difference between "-g" and "-ggdb"?
body: <p>I am working under linux, it seems to me that the effect of &quot;-g&quot; and &quot;-ggdb&quot; are no much difference. I only find using &quot;-ggdb&quot; will generate binary several bytes bigger.</p>
  <p>So what's the core difference that gdb should have one &quot;-g&quot; option and another &quot;-ggdb&quot; option?</p>