]> sourceware.org Git - systemtap.git/commitdiff
Print DIE offsets in loc2c-test scope dumps.
authorRoland McGrath <roland@redhat.com>
Tue, 18 Aug 2009 09:27:38 +0000 (02:27 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 18 Aug 2009 09:28:35 +0000 (02:28 -0700)
loc2c-test.c

index 3c2603858c24559e3bcc8ead08ebe2d8f83e8d55..a5f848ab6cddd0e2d81ac93d5b13724144050acd 100644 (file)
@@ -471,7 +471,8 @@ main (int argc, char **argv)
          Dwarf_Die *const die = &scopes[n];
 
          indent += INDENT;
-         printf ("%*s%s (%#x)", indent, "",
+         printf ("%*s[%6" PRIx64 "] %s (%#x)", indent, "",
+                 dwarf_dieoffset (die),
                  dwarf_diename (die) ?: "<unnamed>",
                  dwarf_tag (die));
 
This page took 0.025406 seconds and 5 git commands to generate.