This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: debugger formats for C++ code.


>>>>> Brendan Simon <brendan@dgs.monash.edu.au> writes:

 > I use the SDS SingleStep debugger on a Win32 platform at work.  It
 > targets an MPC860 system via the OnCE/BDM port.  It seems that
 > SingleStep uses dwarf for debugging and I can debug programs created
 > with GCC if I use the -gdwarf option.  However, there is a statement in
 > the SingleStep documentation that says the GNU-CC does not generate
 > dwarf debugging output for C++ code.  Is this correct ?  If so, is there
 > any reason why it is not supported.

Because DWARF version 1 does not support C++ very well.  We generate
incomplete information, but if you want reasonable debugging output, you
need to use stabs or dwarf v2.  The Diab compiler may use some extensions
to dwarf v1 to make it more suitable; several vendors do, but we don't.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]