public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/21792] New: Decode DWARF5 in eu-readelf
@ 2017-07-19 17:54 woodard at redhat dot com
  2017-09-20 18:38 ` [Bug tools/21792] " mark at klomp dot org
  0 siblings, 1 reply; 2+ messages in thread
From: woodard at redhat dot com @ 2017-07-19 17:54 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=21792

            Bug ID: 21792
           Summary: Decode DWARF5 in eu-readelf
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: woodard at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 10274
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10274&action=edit
clang compiled object that includes the example above

We are starting to use Clang 4.0.0 at LLNL and it is emitting some DWARF5
opcodes. Please add DWARF5 decoding to eu-readelf.

For example:
#include <string>
#include <vector>

std::vector<std::string> var;

and tangentially I saw something in the DWARF which neither readelf or
eu-readelf understands.
[   7e1]      namespace
               name                 (strp) "__cxx11"
               decl_file            (data1) 1
               decl_line            (data2) 2214
               ??? (0x89)           (flag_present) yes


Since clang is already emitting some DWARF5 we should at least be able to
decode what it is emitting reliably.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tools/21792] Decode DWARF5 in eu-readelf
  2017-07-19 17:54 [Bug tools/21792] New: Decode DWARF5 in eu-readelf woodard at redhat dot com
@ 2017-09-20 18:38 ` mark at klomp dot org
  0 siblings, 0 replies; 2+ messages in thread
From: mark at klomp dot org @ 2017-09-20 18:38 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=21792

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mark at klomp dot org
         Resolution|---                         |FIXED

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Although it isn't full DWARF5 support all DWARF5 tags and attributes are
recognized in 0.170. From the NEWS file:

Version 0.170

libdw: Added new DWARF5 attribute, tag, character encoding, language code,
       calling convention, defaulted member function and macro constants
       to dwarf.h.
       New functions dwarf_default_lower_bound and dwarf_line_file.
       dwarf_peel_type now handles DWARF5 immutable, packed and shared tags.
       dwarf_getmacros now handles DWARF5 .debug_macro sections.

And the above example now shows:

 [   7e1]      namespace
               name                 (strp) "__cxx11"
               decl_file            (data1) 1
               decl_line            (data2) 2214
               export_symbols       (flag_present) yes

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-20 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 17:54 [Bug tools/21792] New: Decode DWARF5 in eu-readelf woodard at redhat dot com
2017-09-20 18:38 ` [Bug tools/21792] " mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).