debug/2813: Type of variable is wrong in dwarf2 debugging info

Alexandre Oliva aoliva@redhat.com
Tue May 15 23:56:00 GMT 2001


The following reply was made to PR debug/2813; it has been noted by GNATS.

From: Alexandre Oliva <aoliva@redhat.com>
To: Mark Kettenis <kettenis@wins.uva.nl>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, mark@codesourcery.com
Subject: Re: debug/2813: Type of variable is wrong in dwarf2 debugging info
Date: 16 May 2001 03:49:42 -0300

 --=-=-=
 
 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?
 
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: inline; filename=dwarf2out-qualtype.patch
 
 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
 
 --=-=-=--



More information about the Gcc-prs mailing list