https://bugs.kde.org/show_bug.cgi?id=432102

            Bug ID: 432102
           Summary: Support DWARF5
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: m...@klomp.org
  Target Milestone: ---

Created attachment 135171
  --> https://bugs.kde.org/attachment.cgi?id=135171&action=edit
Implement DWARF5 in readdwarf and readdwarf3

Since gcc11 will default to DWARF5 by default it is time for valgrind to
support it. The attached patch handles everything gcc11 produces.

There is some duplication in the patch since we actually have two DWARF readers
which use slightly different abstractions (Slices vs Cursors). It would be nice
if we could merge these somehow.

And the handling of DW_FORM_implicit_const is tricky with the current design.
An abbrev which contains an attribute encoded with DW_FORM_implicit_const has
its value also in the abbrev. The code in readdwarf3.c assumed it always could
simply get the data from the .debug_info/current Cursor. For now I added a
value  field to the name_form field that holds the associated value. This is
slightly wasteful since the extra field is not necessary for other forms.

Tested against GCC10 and GCC11 on x86_64. No regressions in the regtests.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to