[AArch64] Handle W registers as pseudo-registers instead of aliases of X registers
authorLuis Machado <luis.machado@arm.com>
Thu, 15 Sep 2022 14:57:01 +0000 (15:57 +0100)
committerLuis Machado <luis.machado@arm.com>
Mon, 3 Oct 2022 13:15:25 +0000 (14:15 +0100)
commite63ae49b6a87b779714c1dc922479a76882af977
tree277a4f3a11d57617d7020e5c0b5e96b18aab08ac
parent1ba3a3222039eb2576d29c9fd3af444f59fa51d2
[AArch64] Handle W registers as pseudo-registers instead of aliases of X registers

The aarch64 port handles W registers as aliases of X registers. This is
incorrect because X registers are 64-bit and W registers are 32-bit.

This patch teaches GDB how to handle W registers as pseudo-registers of
32-bit, the bottom half of the X registers.

Testcase included.
gdb/aarch64-tdep.c
gdb/aarch64-tdep.h
gdb/testsuite/gdb.arch/aarch64-w-registers.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-w-registers.exp [new file with mode: 0644]