Go to the previous, next section.

C and C++ defaults

If you allow GDB to set type and range checking automatically, they both default to off whenever the working language changes to C or C++. This happens regardless of whether you, or GDB, selected the working language.

If you allow GDB to set the language automatically, it sets the working language to C or C++ on entering code compiled from a source file whose name ends with `.c', `.C', or `.cc'. See section Having GDB infer the source language, for further details.

Go to the previous, next section.