gdb: Consolidate 32bit-pkeys.xml and 64bit-pkeys.xml
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Feb 2022 15:34:01 +0000 (07:34 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 31 Mar 2022 17:25:26 +0000 (10:25 -0700)
commit0653f01479ecbcbf3c4dfa6083187a5b2c2258c2
tree90de7e80ea6171ae223d6d81f4810c47dfffe0d5
parent5a0c4a06eb4f4afcf885596ee97706c1045a8476
gdb: Consolidate 32bit-pkeys.xml and 64bit-pkeys.xml

1. Since 32bit-pkeys.xml and 64bit-pkeys.xml are identical, consolidate
them into a single keys.xml.
2. Enable PKU for x32 to fix:

$ gdbserver :123456 x32-program
...
.../gdbserver/regcache.cc:255: A problem internal to GDBserver has been detected
.
Unknown register pkru requested

on Tiger Lake.
gdb/amd64-linux-tdep.c
gdb/arch/amd64.c
gdb/arch/i386.c
gdb/features/Makefile
gdb/features/i386/32bit-pkeys.c [deleted file]
gdb/features/i386/32bit-pkeys.xml [deleted file]
gdb/features/i386/64bit-pkeys.c [deleted file]
gdb/features/i386/64bit-pkeys.xml [deleted file]
gdb/features/i386/pkeys.c [new file with mode: 0644]
gdb/features/i386/pkeys.xml [new file with mode: 0644]