From 7544ffdf7dd029f40f9c8b59d156df841c6fb56c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 18 Aug 2009 02:27:38 -0700 Subject: [PATCH] Print DIE offsets in loc2c-test scope dumps. --- loc2c-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.43.5