What is the difference between gcc -ggdb and gcc -g

前端 未结 5 1414
天命终不由人
天命终不由人 2020-12-04 09:15

When I use gcc to compile C programs I usually use -g to get some debug information into the elf file so that gdb can help me if needed.

However, I not

5条回答
  •  無奈伤痛
    2020-12-04 10:09

    This is the official explanation: http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options

    Only few hard facts, but interesting anyway.

提交回复
热议问题