This is an archive of the discontinued LLVM Phabricator instance.

[lldb/DWARF] Support the debug_str_offsets section in dwp files
ClosedPublic

Authored by labath on Feb 17 2020, 8:48 AM.

Details

Summary

In dwp files a constant (from the debug_cu_index section) needs to be
added to each reference into the debug_str_offsets section.

I've tried to implement this to roughly match the llvm flow: I've
changed the DWARFormValue to stop resolving the indirect string
references directly -- instead, it calls into DWARFUnit, which resolves
this for it (similar to how it already resolves indirect range and
location list references). I've also done a small refactor of the string
offset base computation code in DWARFUnit in order to make it easier to
access the debug_cu_index base offset.

Diff Detail

Event Timeline

labath created this revision.Feb 17 2020, 8:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2020, 8:48 AM
clayborg accepted this revision.Feb 17 2020, 12:15 PM
This revision is now accepted and ready to land.Feb 17 2020, 12:15 PM
This revision was automatically updated to reflect the committed changes.