Whole document tree
    

Whole document tree

Debugging with GDB: C
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.4.1 C and C++

Since C and C++ are so closely related, many features of GDB 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 GDB. 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 stabs debugging format. You can select that format explicitly with the g++ command-line options `-gstabs' or `-gstabs+'. See section `Options for Debugging Your Program or GNU CC' in Using GNU CC, for more information.

9.4.1.1 C and C++ operators  
9.4.1.2 C and C++ constants  
9.4.1.3 C++ expressions  
9.4.1.4 C and C++ defaults  Default settings for C and C++
9.4.1.5 C and C++ type and range checks  
9.4.1.6 GDB and C  
9.4.1.7 GDB features for C++  



This document was generated by root on January, 30 2002 using texi2html