Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various issues with debug_lines parsing, and support DWARF5 #383

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Aug 29, 2024

  1. Fix logic for scanning DW_AT_stmt_list attributes.

    Do this for all CUs, not just the first one. A previous incarnation of
    the DWARF parser didn't seem to separate out the translation units, and
    would implicitly iterate all. The change to making compilation units
    more visibile seems to have broken this.
    peadar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    94e2d0a View commit details
    Browse the repository at this point in the history
  2. Fix parsing of DW_AT_ref_udata

    This attribute is a LEB128 encoded value - decode it as such. Later use
    of attributes of this form may need some work, but without parsing it
    correctly, we break parsing of further attributes completely.
    peadar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    0f727ca View commit details
    Browse the repository at this point in the history
  3. Implement debug_lines parsing for DWARFv5

    There are some differences between the DWARF4 and DWARF5 .debug_lines
    table format. Implement the DWARF5 changes.
    
    Mostly, the changes are to make the parser aware of the more
    sophisticated format of the directory and file tables, with some minor
    conditional changes in the header itself.
    peadar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    5497473 View commit details
    Browse the repository at this point in the history