This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Support 64-bit DWARF in .debug_pubnames and alike.
ClosedPublic

Authored by ikudrin on Jan 21 2020, 6:41 AM.

Diff Detail

Event Timeline

ikudrin created this revision.Jan 21 2020, 6:41 AM

Is there any producer that actually emits a 64-bit pubnames? (i.e., is this really worth bothering with?)

I'd have expected the mismatch between section size and the DWARF unit length to cause some sort of warning, but I see that the old code didn't care about malformed info, so that shouldn't block this patch.

I do not have a sample. Right now I am adding DWARF64 to the diagnostic tools to simplify further work on producers.

I have added DWARF64 here just for completeness. The tables are already obsolete in DWARF5, so I do not have plans to improve the parsing too much.

probinson accepted this revision.Jan 22 2020, 8:03 AM

Well... the code is not complicated and is consistent with how other sections are handled. LGTM

This revision is now accepted and ready to land.Jan 22 2020, 8:03 AM
This revision was automatically updated to reflect the committed changes.