[lldb] Fix ppc64 detection in lldb
authorserge-sans-paille <sguelton@redhat.com>
Mon, 2 May 2022 10:19:48 +0000 (12:19 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Tue, 3 May 2022 10:17:23 +0000 (12:17 +0200)
commitf114f009486816ed4b3bf984f0fbbb8fc80914f6
tree7adb3be0545c794ebe0a54546ccb1958df8d2b51
parent74634f4b9807d51b9e723b1ced0c18954893bc6c
[lldb] Fix ppc64 detection in lldb

Currently, ppc64le and ppc64 (defaulting to big endian) have the same
descriptor, thus the linear scan always return ppc64le. Handle that through
subtype.

Differential Revision: https://reviews.llvm.org/D124760
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Utility/ArchSpec.cpp
lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64.core [new file with mode: 0644]
lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64.out [new file with mode: 0755]