From: Roland McGrath Date: Tue, 18 Aug 2009 09:27:38 +0000 (-0700) Subject: Print DIE offsets in loc2c-test scope dumps. X-Git-Tag: release-1.0~161 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7544ffdf7dd029f40f9c8b59d156df841c6fb56c;p=systemtap.git Print DIE offsets in loc2c-test scope dumps. --- diff --git a/loc2c-test.c b/loc2c-test.c index 3c2603858..a5f848ab6 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) ?: "", dwarf_tag (die));