This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DWARF dbg output - Are people enhancing this for C++?
- To: Mark Phillips <M dot S dot Phillips at nortel dot co dot uk>
- Subject: Re: DWARF dbg output - Are people enhancing this for C++?
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Wed, 24 Sep 1997 12:07:52 -0700
- cc: egcs at cygnus dot com
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