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

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!


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