This is an archive of the discontinued LLVM Phabricator instance.

[DWARFLinker][DWARFv5] Add support for DW_FORM_addrx*
ClosedPublic

Authored by avl on Mar 10 2023, 9:03 AM.

Details

Summary

This patch add support of DWARFv5 attribute forms: DW_FORM_addrx1,
DW_FORM_addrx2, DW_FORM_addrx3, DW_FORM_addrx4.

Diff Detail

Event Timeline

avl created this revision.Mar 10 2023, 9:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 9:03 AM
avl requested review of this revision.Mar 10 2023, 9:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 9:03 AM
clayborg accepted this revision.Mar 10 2023, 9:41 AM

Looks good to me.

This revision is now accepted and ready to land.Mar 10 2023, 9:41 AM
dblaikie added inline comments.Mar 11 2023, 9:57 AM
llvm/lib/DWARFLinker/DWARFLinker.cpp
1374

I wouldn't stress about this - no debugger has support for it, it was a prototype for getting data and the version that was standardized is slightly different (takes offset as a uleb).

avl added inline comments.Mar 11 2023, 3:30 PM
llvm/lib/DWARFLinker/DWARFLinker.cpp
1374

I`ve left a comment to learn it better later. Will remove as it is not useful.

avl added a comment.Mar 13 2023, 4:15 AM

Thanks for the review!

This revision was automatically updated to reflect the committed changes.