[lldb] Treat ARM64X images as ARM64.
authorJacek Caban <jacek@codeweavers.com>
Tue, 25 Jul 2023 22:09:34 +0000 (00:09 +0200)
committerTobias Hieta <tobias@hieta.se>
Wed, 26 Jul 2023 17:28:06 +0000 (19:28 +0200)
commit397390a65b8dc50a7bca560b2caa4b99935a03f3
tree77983612ffc8d08c06f03b6704ed47aa8d8c4ff3
parent6ce6dcf233ead31f1776a57a3dc80f722cfe2864
[lldb] Treat ARM64X images as ARM64.

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 behavior and fix tests.

Reviewed By: mstorsjo
Differential Revision: https://reviews.llvm.org/D156268

(cherry picked from commit 48feef277a24b1b9c0ff33267a91e70d9584012e)
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h