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: DWARF dbg output - Are people enhancing this for C++?


	Is anyone working on (or has anyone already added!) C++ DWARF support?

C++ is supported for both DWARF1 and DWARF2.  It will work much better for
DWARF2 than for DWARF1.

The DWARF1 standard does not have support for all constructs that exist
in C++, so I believe gcc is emitting incomplete debug info and/or is relying
on GNU DWARF1 extensions which may or may not be supported by gdb.  The
result is that you can compile a C++ program with DWARF1 debugging info,
but you may have trouble debugging it.

DWARF2 does support C++, but some aspects of the standard are subject to
interpretation, so the debug info may not work with all DWARF2 aware debuggers.
It is known to work with gdb and the SGI Irix6 dbx.  You should not have
any trouble debugging a C++ program with DWARF2 debugging info if you use gdb.

Jim


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