diff options
author | Dodji Seketeli <dodji@redhat.com> | 2010-11-29 16:29:41 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2010-11-29 17:29:41 +0100 |
commit | 3b8204d789565e2afb6b0d3fea63d69fd99a5a5d (patch) | |
tree | 7748a330fba742d6735aa72bd5875b97b7002b29 /gcc | |
parent | 34f3d643a8b8a83b6b2d06513884207103ab193d (diff) | |
download | gcc-3b8204d789565e2afb6b0d3fea63d69fd99a5a5d.zip gcc-3b8204d789565e2afb6b0d3fea63d69fd99a5a5d.tar.gz gcc-3b8204d789565e2afb6b0d3fea63d69fd99a5a5d.tar.bz2 |
Add addresses of DIEs to debug_dwarf_die
gcc/
* dwarf2out.c (print_die): Print the address of the current DIE or
of any DIE referenced by the current one.
From-SVN: r167247
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09fc957..ac49adc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-11-29 Dodji Seketeli <dodji@redhat.com> + * dwarf2out.c (print_die): Print the address of the current DIE or + of any DIE referenced by the current one. + +2010-11-29 Dodji Seketeli <dodji@redhat.com> + PR debug/46101 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New function. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7e788a4..04764ba 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8450,11 +8450,14 @@ print_die (dw_die_ref die, FILE *outfile) unsigned ix; print_spaces (outfile); - fprintf (outfile, "DIE %4ld: %s\n", - die->die_offset, dwarf_tag_name (die->die_tag)); + fprintf (outfile, "DIE %4ld: %s (%p)\n", + die->die_offset, dwarf_tag_name (die->die_tag), + (void*) die); print_spaces (outfile); fprintf (outfile, " abbrev id: %lu", die->die_abbrev); - fprintf (outfile, " offset: %ld\n", die->die_offset); + fprintf (outfile, " offset: %ld", die->die_offset); + fprintf (outfile, " mark: %d\n", die->die_mark); + if (dwarf_version >= 4 && die->die_id.die_type_node) { print_spaces (outfile); @@ -8518,6 +8521,7 @@ print_die (dw_die_ref die, FILE *outfile) AT_ref (a)->die_id.die_symbol); else fprintf (outfile, "die -> %ld", AT_ref (a)->die_offset); + fprintf (outfile, " (%p)", (void *) AT_ref (a)); } else fprintf (outfile, "die -> <null>"); |