[lldb] [ABI/AArch64] Do not add subregs if some of them are present
authorMichał Górny <mgorny@moritz.systems>
Fri, 15 Oct 2021 11:58:27 +0000 (13:58 +0200)
committerMichał Górny <mgorny@moritz.systems>
Fri, 15 Oct 2021 12:08:37 +0000 (14:08 +0200)
commitf70f9620d9abff33cf1553fad6361dc4f3183a9b
treeac024f9d1c787198a5129fdea2a3fd3f025252f2
parent6a89fefd13cd835db7d6c0c97125f43f49e958aa
[lldb] [ABI/AArch64] Do not add subregs if some of them are present

Fix a bug introduced while refactoring ABIAArch64::AugmentRegisterInfo()
that caused subregisters to be added even if they were already present.
Instead, abort immediately if at least one subregister is found
(following ABIX86).  While at it, add a test for that.

Differential Revision: https://reviews.llvm.org/D111881
lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py