summaryrefslogtreecommitdiffstats
path: root/loc2c-test.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-08-18 02:27:38 -0700
committerRoland McGrath <roland@redhat.com>2009-08-18 02:28:35 -0700
commit7544ffdf7dd029f40f9c8b59d156df841c6fb56c (patch)
treed9ae8b5892f677db15d5eb2ecea5c04ecc879395 /loc2c-test.c
parentc1969f1b4b2d9d9a86dafc4a417e42f879b5f647 (diff)
downloadsystemtap-steved-7544ffdf7dd029f40f9c8b59d156df841c6fb56c.tar.gz
systemtap-steved-7544ffdf7dd029f40f9c8b59d156df841c6fb56c.tar.xz
systemtap-steved-7544ffdf7dd029f40f9c8b59d156df841c6fb56c.zip
Print DIE offsets in loc2c-test scope dumps.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r--loc2c-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loc2c-test.c b/loc2c-test.c
index 3c260385..a5f848ab 100644
--- a/loc2c-test.c
+++ b/loc2c-test.c
@@ -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));