This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Correct out-of-bounds error message for DW_FORM_line_strp
ClosedPublic

Authored by benmxwl-arm on Mar 21 2023, 9:18 AM.

Details

Summary

DW_FORM_line_strp reads from the .debug_line_str section, but
previously the out-of-bounds error reported the .debug_line section.

This incorrect error message showed up when debugging an issue with
some invalid DWARF5 data.

The verify_string.s test has now been extended to check this (which
required a small change to the DWARF verifier to also look at
DW_FORM_line_strp).

Diff Detail

Event Timeline

benmxwl-arm created this revision.Mar 21 2023, 9:18 AM
Herald added a project: Restricted Project. · View Herald Transcript
benmxwl-arm requested review of this revision.Mar 21 2023, 9:18 AM
jhenderson accepted this revision.Mar 22 2023, 1:23 AM

Looks reasonable to me, but please give it a few days for others to have a chance to review.

It may well be, but please make sure this is clang-formatted prior to submission. The pre-merge check is complaining about something to do with clang-format, but it might not be an issue with your change.

This revision is now accepted and ready to land.Mar 22 2023, 1:23 AM

I'm a little confused about the clang-format issue, it is complaining about a file I touched, though my commit was formatted locally (possibly some recent formatting change?) I'll double check that today.

I'll submit this soon if there's no further comments.

I did look into the clang-format issues, but I can't reproduce it (git clang-format does not report any issue locally, there are a few places that need formatting but they are not lines I changed).

probinson accepted this revision.Mar 24 2023, 8:22 AM
probinson added a subscriber: probinson.

LGTM

This revision was landed with ongoing or failed builds.Mar 30 2023, 8:10 AM
This revision was automatically updated to reflect the committed changes.