4 ms·
Use -g3 instead of -g to get macro expansion support. GCC 4.8 adds an -Og to have debugging compatible optimizations activated as a trade-off between debugabil
by fafner 14y ago
Use -g3 instead of -g to get macro expansion support.
GCC 4.8 adds an -Og to have debugging compatible optimizations activated as a trade-off between debugability and runtime performance.
And do yourself a favour and use a front end for gdb. It's much easier to keep an overview. Emacs' gdb support is really great. If you like a GUI then try KDbg (not to be confused with kgdb) or Nemiver. For terminals there are curses base frontends such as gdb -tui and cgdb.