This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Treat ARM64X images as ARM64.
ClosedPublic

Authored by jacek on Jul 25 2023, 3:16 PM.

Details

Summary

With D149091, ARM64X binaries are no longer reported as ARM64. This broke lldb tests as Windows 11 system DLLs are mostly ARM64X binaries and lldb doesn't know how to handle them. Ideally lldb would understand a bit more about ARM64X and handle them as AMD64 in x64 processes, but this is enough to preserve previous behaviour and unbreak tests.

Diff Detail

Event Timeline

jacek created this revision.Jul 25 2023, 3:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2023, 3:16 PM
jacek added a reviewer: antmo.Jul 25 2023, 3:18 PM
mstorsjo accepted this revision.Jul 26 2023, 12:41 AM
mstorsjo added a subscriber: mstorsjo.

I think this looks good. Did @antmo verify that it actually fixes the issue? (It seems plausible, although there may be more similar cases hiding somewhere?)

After this is landed, we need to make sure to backport this to the newly created 17.x branch.

This revision is now accepted and ready to land.Jul 26 2023, 12:41 AM
antmo added a comment.Jul 26 2023, 1:20 AM

I think this looks good. Did @antmo verify that it actually fixes the issue? (It seems plausible, although there may be more similar cases hiding somewhere?)

Not yet. Struggling a bit with the windows setup

antmo added a comment.Jul 26 2023, 3:34 AM

I confirm that the 7 failed tests are now Ok

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 5:47 AM
jacek added a comment.Jul 26 2023, 8:10 AM

Thanks for review and testing. I created https://github.com/llvm/llvm-project/issues/64131 for the backport.