diff options
author | Aldy Hernandez <aldyh@gcc.gnu.org> | 2014-09-04 16:37:54 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2014-09-04 16:37:54 +0000 |
commit | b7af73a7192c92c06190486950ee142ad73781d1 (patch) | |
tree | 1eb38ebc6d31347d8f7a043f43d4fa64e9f10f67 /gcc | |
parent | c9fd354aecd2283b4387034da2f335030531fb26 (diff) | |
download | gcc-b7af73a7192c92c06190486950ee142ad73781d1.zip gcc-b7af73a7192c92c06190486950ee142ad73781d1.tar.gz gcc-b7af73a7192c92c06190486950ee142ad73781d1.tar.bz2 |
Make output_die() output the parent DIE for each DIE.
From-SVN: r214908
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 77ad5ac..e55c6d5 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) { |