If gdb doesn’t figure out the language automatically, you can set it using set language.
show language shows the current language.
This chapter also has some information on type checking, and how you can turn it on/off. Same with bounds checking.
Read this chapter for information specific to debugging C++ (e.g. things related to overloaded functions, etc).