[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>
Thu, 5 May 2022 07:22:02 +0000 (09:22 +0200)
commitf416e57339bd3315834e6c14d6476e63ccb363ff
treea719bf7ff54982f858f636e677a1f7457ef27e64
parent405bf90235615332bc2f59ebc5561f942cfd3b11
[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.

This is a recommit of f114f009486816ed4b3bf984f0fbbb8fc80914f6 with a new test
setup that doesn't involves (unsupported) corefiles.

Differential Revision: https://reviews.llvm.org/D124760
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Utility/ArchSpec.cpp
lldb/test/Shell/Breakpoint/Inputs/ppc64le-localentry.s [new file with mode: 0644]
lldb/test/Shell/Breakpoint/ppc64-localentry.test
lldb/test/Shell/Breakpoint/ppc64le-localentry.test [new file with mode: 0644]