[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
12.4.1 C and C++
Since C and C++ are so closely related, many features of No value for GDBN apply to both languages. Whenever this is the case, we discuss those languages together.
The C++ debugging facilities are jointly implemented by the C++
compiler and No value for GDBN. Therefore, to debug your C++ code
effectively, you must compile your C++ programs with a supported
C++ compiler, such as GNU g++
, or the HP ANSI C++
compiler (aCC
).
For best results when using GNU C++, use the DWARF 2 debugging
format; if it doesn't work on your system, try the stabs+ debugging
format. You can select those formats explicitly with the g++
command-line options ‘-gdwarf-2’ and ‘-gstabs+’.
See (gcc.info)Debugging Options section `Options for Debugging Your Program or GCC' in Using the GNU Compiler Collection (GCC).
12.4.1.1 C and C++ Operators | C and C++ operators | |
12.4.1.2 C and C++ Constants | C and C++ constants | |
12.4.1.3 C++ Expressions | C++ expressions | |
12.4.1.4 C and C++ Defaults | Default settings for C and C++ | |
12.4.1.5 C and C++ Type and Range Checks | C and C++ type and range checks | |
12.4.1.6 No value for GDBN and C | ||
12.4.1.7 No value for GDBN Features for C++ | No value for GDBN features for C++ |