From 507f17864274e208cab0e239aad29de4ee2f5ede Mon Sep 17 00:00:00 2001 From: aldyh Date: Thu, 4 Sep 2014 16:37:54 +0000 Subject: [PATCH] Make output_die() output the parent DIE for each DIE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214908 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/dwarf2out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 77ad5accfacf..e55c6d5fdbab 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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) { -- 2.47.2