Make output_die() output the parent DIE for each DIE.
authorAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 4 Sep 2014 16:37:54 +0000 (16:37 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 4 Sep 2014 16:37:54 +0000 (16:37 +0000)
From-SVN: r214908

gcc/dwarf2out.c

index 77ad5accfacfb985b19592119740c91c3ff7587b..e55c6d5fdbabe37e213494cf177a17546c09fa0b 100644 (file)
@@ -8703,9 +8703,10 @@ output_die (dw_die_ref die)
   if (! die->comdat_type_p && die->die_id.die_symbol)
     output_die_symbol (die);
 
-  dw2_asm_output_data_uleb128 (die->die_abbrev, "(DIE (%#lx) %s)",
+  dw2_asm_output_data_uleb128 (die->die_abbrev, "(DIE (%#lx) %s (parent DIE=%#lx))",
                               (unsigned long)die->die_offset,
-                              dwarf_tag_name (die->die_tag));
+                              dwarf_tag_name (die->die_tag),
+                              die->die_parent ? die->die_parent->die_offset : 0);
 
   FOR_EACH_VEC_SAFE_ELT (die->die_attr, ix, a)
     {