This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][test] - unwind.test: add comments, document the current behavior.
ClosedPublic

Authored by grimar on May 27 2020, 8:01 AM.

Details

Summary

Here I've added comments, added testing for llvm-readelf and documented
the behavior that we already have.

It was discussed in the D80380 thread that we want to improve the
"p_memsz does not match p_filesz for GNU_EH_FRAME" message reported
(and probably convert error to a warning). This patch is a preparation
for that.

Diff Detail

Event Timeline

grimar created this revision.May 27 2020, 8:01 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson accepted this revision.May 29 2020, 1:51 AM
jhenderson added a subscriber: Higuoxing.

LGTM, with comment suggestions.

llvm/test/tools/llvm-readobj/ELF/unwind.test
208

Not related to this change, but yuck, this is horrible. Probably this wants implementing in yaml2obj at some point (perhaps wait until @Higuoxing has done work on .debug_frame support though). Same sort of comment applies ot the content of the .eh_frame_hdr though.

241

we partially dump the unwind information when

to a truncated -> to truncated

The line probably wants splitting in two.

This revision is now accepted and ready to land.May 29 2020, 1:51 AM
grimar marked an inline comment as done.May 29 2020, 3:12 AM
grimar added inline comments.
llvm/test/tools/llvm-readobj/ELF/unwind.test
208

Perhaps it worth to implement ContentArray for such temporarily tests, like we discussed before in D75123.

This revision was automatically updated to reflect the committed changes.