[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
This commit is contained in:
Jacek Caban 2023-07-26 00:09:34 +02:00
parent 25b8433b75
commit 48feef277a
2 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,7 @@ size_t ObjectFilePECOFF::GetModuleSpecifications(
specs.Append(module_spec);
break;
case MachineArm64:
case MachineArm64X:
spec.SetTriple("aarch64-pc-windows");
spec.GetTriple().setEnvironment(env);
specs.Append(module_spec);

View File

@ -24,6 +24,7 @@ public:
MachineArm = 0x1c0,
MachineArmNt = 0x1c4,
MachineArm64 = 0xaa64,
MachineArm64X = 0xa64e,
MachineEbc = 0xebc,
MachineX86 = 0x14c,
MachineIA64 = 0x200,