This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Add check for .debug_line minimum_instruction_length of 0
ClosedPublic

Authored by jhenderson on Feb 26 2020, 8:41 AM.

Details

Summary

If the minimum_instruction_length of a debug line program is 0, no address advancing via special opcodes, DW_LNS_const_add_pc, and DW_LNS_advance_pc can occur, since the minimum_instruction_length is used in a multiplication. This patch adds a warning reporting when this issue occurs.

Depends on D74819.

Diff Detail

Event Timeline

jhenderson created this revision.Feb 26 2020, 8:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2020, 8:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
jhenderson updated this revision to Diff 247605.Mar 2 2020, 4:42 AM

Rebase and fix a warning.

This revision is now accepted and ready to land.Mar 3 2020, 8:21 AM
jhenderson updated this revision to Diff 248468.Mar 5 2020, 6:38 AM

Rebase on latest changes.

jhenderson updated this revision to Diff 249057.Mar 9 2020, 4:11 AM

Remove unnecessary public.

This revision was automatically updated to reflect the committed changes.