This is an archive of the discontinued LLVM Phabricator instance.

[llvm-dwp] Report the filename if it cannot be found
ClosedPublic

Authored by steven.zhang on Sep 8 2022, 7:34 PM.

Details

Summary

For now, we report nothing if the execution/dwo file is missing, which is confusing.

llvm-dwp -e a.out1 -o y
error: No such file or directory

With this patch, it looks like this:

llvm-dwp -e a.out1 -o y
error: 'a.out1': No such file or directory

Diff Detail

Event Timeline

steven.zhang created this revision.Sep 8 2022, 7:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2022, 7:34 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
steven.zhang requested review of this revision.Sep 8 2022, 7:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2022, 7:34 PM

Needs test cases (for all 3 code changes - so I'd expect three test cases (maybe in one file, if that's reasonable, doesn't have to be three separate test files necessarily))

dblaikie accepted this revision.Sep 12 2022, 10:26 AM

awesome - thanks!

This revision is now accepted and ready to land.Sep 12 2022, 10:26 AM
This revision was landed with ongoing or failed builds.Sep 12 2022, 10:00 PM
This revision was automatically updated to reflect the committed changes.
dyung added a subscriber: dyung.Sep 13 2022, 2:18 AM

@steven.zhang, the test you added seems to be failing on some Windows bots, can you take a look and revert if it will take a while to investigate?

https://lab.llvm.org/buildbot/#/builders/216/builds/9680
https://lab.llvm.org/buildbot/#/builders/123/builds/13130
https://lab.llvm.org/buildbot/#/builders/117/builds/9054

looks like all 3 linked failures were related to the case of the n in no such file or directory - some platforms use lowercase, some upper.

llvm/test/tools/llvm-dwp/X86/diagnose_missing_dwos.test
26–28
steven.zhang added inline comments.Sep 13 2022, 8:28 PM
llvm/test/tools/llvm-dwp/X86/diagnose_missing_dwos.test
26–28

Thanks !

I have re-commit as suggested. Thank you for pointing out the testing issue for windows.