Debugging with GDB

Node:C Defaults, Next:C Checks, Previous:C plus plus expressions, Up:C

##### 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 selects the working language.

If you allow GDB to set the language automatically, it recognizes source files whose names end with `.c`, `.C`, or `.cc`, etc, and when GDB enters code compiled from one of these files, it sets the working language to C or C`++`. See Having GDB infer the source language, for further details.