This is the mail archive of the 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]
Other format: [Raw text]

Re: [PATCH] make DWARF2_DEBUG the default for ELF platforms.

On Thu, Dec 06, 2001 at 09:51:58AM +0000, Jason Merrill wrote:
> >>>>> "Daniel" == Daniel Jacobowitz <> writes:
> > I'd like to request that this change not go in yet.  I've been working
> > intensely on fixing DWARF2 support in GDB over the past few weeks, and
> > I'm starting to make a little headway - but anyone who has tried it
> > lately with a recent GCC will realize that it's got a long way to go. 
> I've noticed a lot of problems with C++, but those aren't specific to
> dwarf2; stabs doesn't work any better.  What dwarf-specific problems are
> you seeing?

The difference between the problems with Dwarf2 and the problems with
stabs is that the stabs bugs are pretty much all fixed in my local tree
and will be committed soon (I hope).  The dwarf2 changes are a lot more
fundamental; for instance, see my message about the problems GDB runs
in to for functions it doesn't have a mangled name for.  This is of
course GDB's problem and not GCC's, but it will take some effort to

I'd like to have some breathing room (and make sure we don't need some
sort of changes to the dwarf2 output) before the default for -g becomes
more frustrating to debug.

For those who noticed no problems - have you tried either C++ or Java? 
I don't even know the state of Java right now (there is none in the
testsuite, I think) but C is basically the trivial case of debug
formats.  No inheritance (couple dozen bugs there).  No implicit
typedefs for classes (at least two here).  No function types which
include argument types (dozens).

Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

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