summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));