Page MenuHomePhabricator

Add a verbose mode to "image dump line-table" and use it to write a .debug_line test

Authored by labath on Jan 4 2019, 5:31 AM.



The motivation for this is being able to write tests for the upcoming
breakpad line table parser, but this could be useful for testing the
low-level workings of any line table format. Or simply for viewing the
line table information with more detail (the brief format doesn't
include any of the flags for end_of_prologue and similar).

I've also removed the load_addresses argument from the
DumpCompileUnitLineTable function, as it wasn't being used anywhere.

Diff Detail


Event Timeline

labath created this revision.Jan 4 2019, 5:31 AM
clayborg accepted this revision.Jan 4 2019, 10:59 AM
This revision is now accepted and ready to land.Jan 4 2019, 10:59 AM
zturner accepted this revision.Jan 7 2019, 2:13 PM

Ok, that makes sense. BTW, it would be nice if someone ever decided to make llvm-mc recognize more symbolic constants so we didn't have to use magic numbers everywhere.

This revision was automatically updated to reflect the committed changes.