This is an archive of the discontinued LLVM Phabricator instance.

Add maximum_operations_per_instruction to DWARFDebugLine.
ClosedPublic

Authored by endlessroad on Sep 29 2014, 3:29 PM.

Details

Reviewers
tfiala
Summary

"maximum_operations_per_instruction" is a field that was added to .debug_line header in DWARF4.

Diff Detail

Event Timeline

endlessroad retitled this revision from to Add maximum_operations_per_instruction to DWARFDebugLine..
endlessroad updated this object.
endlessroad edited the test plan for this revision. (Show Details)
endlessroad added a reviewer: tfiala.
endlessroad added a subscriber: Unknown Object (MLST).

Looks good; one small suggestion, otherwise please commit.

source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp
427

Please add an else block here and assign a value of 1 to maximum_operations_per_instruction. If anyone uses this in the line table parser (unlikely unless we're adding Itanium support or something), we should avoid having a garbage value for older DWARF files.

Address Jason's comment

tfiala edited edge metadata.Sep 29 2014, 4:03 PM

Thanks, Jason!

Just running a few tests over here. If it comes up clean, I'll get it in.

tfiala accepted this revision.Sep 29 2014, 4:21 PM
tfiala edited edge metadata.

Passed tests on Ubuntu Linux and MacOSX.

This revision is now accepted and ready to land.Sep 29 2014, 4:21 PM
tfiala closed this revision.Sep 29 2014, 4:21 PM
$ svn commit
Sending        source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp
Sending        source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
Transmitting file data ..
Committed revision 218641.