This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add option to eliminate unused types in dwarf2 output(v2)
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Scott Snyder <snyder at fnal dot gov>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 4 Jul 2002 21:28:12 -0400 (EDT)
- Subject: Re: [PATCH] add option to eliminate unused types in dwarf2 output(v2)
> > functions are also lost. This means that to call such a function,
> > you need to cast the pointer through which you're calling
> > to the concrete class.
>
> These, on the other hand, are very different. If you describe the type
> of a class, you need to describe it correctly. GDB has no business
> assuming that different definitions should be "merged".
I agree completely.
> It should
> instead assume that they represent two different classes, which is
> obviously untrue. I believe that any referenced class should have all
> of its debugging information included, and any called function should
> also have its debugging information present even if the function
> definition is in another CU - say, off in a stripped libc!
Heck, in DWARF3, we can actually DW_form_ref_addr things from other shared
libraries!