[lldb] [test] Rewrite g/p/G/P tests not to rely on hardcoded ARM regs
authorMichał Górny <mgorny@moritz.systems>
Sat, 9 Oct 2021 16:02:08 +0000 (18:02 +0200)
committerMichał Górny <mgorny@moritz.systems>
Mon, 11 Oct 2021 12:07:28 +0000 (14:07 +0200)
commit270c989f6fef3bc336f7a4238754faa7c5993d3d
tree59845be0e8808a2ef89c39d9b1e267310b665f8b
parentedec659f480f02642461cebd422ab35152cdfd23
[lldb] [test] Rewrite g/p/G/P tests not to rely on hardcoded ARM regs

Rewrite the register reading/writing tests to use explicit qRegisterInfo
packets rather than relying on ARM registers being hardcoded in LLDB.
While at it, use x86_64 for tests -- since it was easier for me to get
the register lists from that architecture.

Differential Revision: https://reviews.llvm.org/D111496
lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
lldb/test/API/functionalities/gdb_remote_client/a.yaml
lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py