mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-06 17:41:22 +00:00
[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:
parent
25b8433b75
commit
48feef277a
@ -343,6 +343,7 @@ size_t ObjectFilePECOFF::GetModuleSpecifications(
|
|||||||
specs.Append(module_spec);
|
specs.Append(module_spec);
|
||||||
break;
|
break;
|
||||||
case MachineArm64:
|
case MachineArm64:
|
||||||
|
case MachineArm64X:
|
||||||
spec.SetTriple("aarch64-pc-windows");
|
spec.SetTriple("aarch64-pc-windows");
|
||||||
spec.GetTriple().setEnvironment(env);
|
spec.GetTriple().setEnvironment(env);
|
||||||
specs.Append(module_spec);
|
specs.Append(module_spec);
|
||||||
|
@ -24,6 +24,7 @@ public:
|
|||||||
MachineArm = 0x1c0,
|
MachineArm = 0x1c0,
|
||||||
MachineArmNt = 0x1c4,
|
MachineArmNt = 0x1c4,
|
||||||
MachineArm64 = 0xaa64,
|
MachineArm64 = 0xaa64,
|
||||||
|
MachineArm64X = 0xa64e,
|
||||||
MachineEbc = 0xebc,
|
MachineEbc = 0xebc,
|
||||||
MachineX86 = 0x14c,
|
MachineX86 = 0x14c,
|
||||||
MachineIA64 = 0x200,
|
MachineIA64 = 0x200,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user