Search notes:

gcc -g

gcc -g creates information suitable for debbuging a program with gdb.
Because a program should not be altered in any way when debugging information is added, the creators of gcc don't want have a specially defined macro when compiling with -g.

Some options

Some -g related options are:

See also

readelf -w dumps all DWARF data.
-Og
GCC options

Index