[BZ 21005] Add support for Intel 64 rdrand and rdseed record/replay
authorLuis Machado <lgustavo@codesourcery.com>
Mon, 6 Feb 2017 09:12:00 +0000 (03:12 -0600)
committerLuis Machado <lgustavo@codesourcery.com>
Mon, 6 Feb 2017 09:12:00 +0000 (03:12 -0600)
commit20b477a75c00de06a92b9577fd74416699d2c37f
tree954421dcc9219afb9b6e186c59f47a9a4f9288a3
parent3f7b46f2daa6c396564d786bda9c81e66d4b9278
[BZ 21005] Add support for Intel 64 rdrand and rdseed record/replay

This patch addresses BZ 21005, which is gdb failing to recognize an rdrand
instruction.

It enables support for both rdrand and rdseed and handles extended register
addressing (R8~R15) for 16-bit, 32-bit and 64-bit.

gdb/ChangeLog
2017-02-06  Luis Machado  <lgustavo@codesourcery.com>

* NEWS: Mention support for record/replay of Intel 64 rdrand and
rdseed instructions.
i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.

gdb/testsuite/ChangeLog:
2017-02-06  Luis Machado  <lgustavo@codesourcery.com>

* gdb.reverse/insn-reverse.c: Include insn-reverse-x86.c.
* gdb.reverse/insn-reverse-x86.c: New file.
gdb/ChangeLog
gdb/NEWS
gdb/i386-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.reverse/insn-reverse-x86.c [new file with mode: 0644]
gdb/testsuite/gdb.reverse/insn-reverse.c