[lldb] [Process/gdb-remote] Alias sp to x31 on AArch64 for gdbserver
authorMichał Górny <mgorny@moritz.systems>
Thu, 16 Sep 2021 09:03:00 +0000 (11:03 +0200)
committerMichał Górny <mgorny@moritz.systems>
Thu, 16 Sep 2021 11:13:47 +0000 (13:13 +0200)
commit47d57547f43c6cf9404268b8a4c2f75c402615c2
treecc70ad9f5d8851fe4ad986bbfe945db65a725873
parent1ef62cb20028fb7b75c65badcafec8c4703cbda3
[lldb] [Process/gdb-remote] Alias sp to x31 on AArch64 for gdbserver

Alias the "sp" register to "x31" on AArch64 if one is present and does
not have the alt_name.  This is the case when connecting to gdbserver.

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