This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: debug/2813: Type of variable is wrong in dwarf2 debugging info
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: debug/2813: Type of variable is wrong in dwarf2 debugging info
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 May 2001 03:49:42 -0300
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200105142119.f4ELJXZ10815@delius.kettenis.local>
Mark Mitchell agreed this seemed like the right fix go, so I went
ahead and prepared this patch (that I took the liberty to attribute to
you; I hope you don't mind :-), that I'm bootstrapping as I write
this. It does indeed fix this particular bug report.
Ok to install in branch and mainline if bootstrap succeeds?
Index: gcc/ChangeLog
from Mark Kettenis <kettenis@wins.uva.nl>
* dwarf2out.c (modified_type_die): Equate qualified type to die.
Index: gcc/dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.266
diff -u -p -r1.266 dwarf2out.c
--- gcc/dwarf2out.c 2001/05/12 06:03:19 1.266
+++ gcc/dwarf2out.c 2001/05/16 06:41:26
@@ -6922,6 +6922,9 @@ modified_type_die (type, is_const_type,
if (mod_type_die == NULL)
abort ();
}
+
+ if (qualified_type)
+ type = qualified_type;
}
equate_type_number_to_die (type, mod_type_die);
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me