-gstabs
gives better C++ COFF debugging
If you use the GCC option `-gstabs', GCC embeds extended
debugging information in COFF object files. (The extended debug
information is based on the stabs debugging format, which was
originally used only with the a.out
object file format; see
The stabs debug format, in your sources as
`src/gdb/doc/stabs.texinfo', or contact Cygnus for more
information.) With this additional debugging information, you can debug
C++ programs with GDB, even on systems that use COFF.
You can get better C++ debugging by compiling with `-gstabs' for these targets:
a29k-amd-udi m68k-coff h8300-hms m88k-coff z8k-coff sh-hms