[rtems-tools commit] rtemstoolkit/dwarf: Dump the DIE offset
Chris Johns
chrisj at rtems.org
Sat Sep 26 00:49:40 UTC 2020
Module: rtems-tools
Branch: master
Commit: d9aecc20b31932b5becfafe9388861305de97114
Changeset: http://git.rtems.org/rtems-tools/commit/?id=d9aecc20b31932b5becfafe9388861305de97114
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Sep 25 11:27:35 2020 +1000
rtemstoolkit/dwarf: Dump the DIE offset
---
rtemstoolkit/rld-dwarf.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-dwarf.cpp
index fc4399a..d9ac6f3 100644
--- a/rtemstoolkit/rld-dwarf.cpp
+++ b/rtemstoolkit/rld-dwarf.cpp
@@ -1429,7 +1429,11 @@ namespace rld
const char* s;
::dwarf_get_TAG_name (tag (), &s);
out << level_prefix.substr (0, level_prefix.length () - 1)
- << "+- " << s << std::endl;
+ << "+- " << s << " ("
+ << std::hex << std::setfill ('0')
+ << std::setw (8) << offset_
+ << std::dec << std::setfill (' ')
+ << ')' << std::endl;
dwarf_attribute* attributes;
dwarf_signed attr_count;
More information about the vc
mailing list