If type and range checking are set automatically by ROCgdb, they
both default to on whenever the working language changes to
Modula-2. This happens regardless of whether you or ROCgdb
selected the working language.
If you allow ROCgdb to set the language automatically, then entering code compiled from a file whose name ends with .mod sets the working language to Modula-2. See Having ROCgdb Infer the Source Language, for further details.