diff options
author | Chris Johns <chrisj@rtems.org> | 2020-09-25 11:27:35 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-09-26 10:49:27 +1000 |
commit | d9aecc20b31932b5becfafe9388861305de97114 (patch) | |
tree | 2b209c2387136e9ef8beb645047be7a7d22407c7 /rtemstoolkit | |
parent | rtemstoolkit/configuration: Treat an empty variable as an empty list (diff) | |
download | rtems-tools-d9aecc20b31932b5becfafe9388861305de97114.tar.bz2 |
rtemstoolkit/dwarf: Dump the DIE offset
Diffstat (limited to 'rtemstoolkit')
-rw-r--r-- | rtemstoolkit/rld-dwarf.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |