aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorCupertino Miranda <cupertino.miranda@oracle.com>2023-12-05 23:09:57 +0000
committerCupertino Miranda <cupertino.miranda@oracle.com>2023-12-07 10:55:55 +0000
commitd2ee8bb694500c9e460283f9078b7cc53362dc95 (patch)
tree8fad695c216fdb9568893ea1f82a74c82235feb8 /gdb/testsuite
parent708aee5ec64bea2c84449f63f3cdaa6d2b0b5892 (diff)
downloadgdb-d2ee8bb694500c9e460283f9078b7cc53362dc95.zip
gdb-d2ee8bb694500c9e460283f9078b7cc53362dc95.tar.gz
gdb-d2ee8bb694500c9e460283f9078b7cc53362dc95.tar.bz2
gdb/record: Support for rdtscp in i386_process_record.
This patch adds support for process recording of the instruction rdtscp in x86 architecture. Debugging applications with "record full" fail to record with the error message "Process record does not support instruction 0xf01f9". Approved-by: Guinevere Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.reverse/insn-reverse-x86.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.reverse/insn-reverse-x86.c b/gdb/testsuite/gdb.reverse/insn-reverse-x86.c
index 2b4fb4c..23888ba 100644
--- a/gdb/testsuite/gdb.reverse/insn-reverse-x86.c
+++ b/gdb/testsuite/gdb.reverse/insn-reverse-x86.c
@@ -270,6 +270,16 @@ rdseed (void)
#endif
}
+/* Test rdtscp support. */
+
+void
+rdtscp (void)
+{
+#ifdef __x86_64__
+ __asm__ volatile ("rdtscp");
+#endif
+}
+
/* Initialize arch-specific bits. */
static void
@@ -283,5 +293,6 @@ initialize (void)
static testcase_ftype testcases[] =
{
rdrand,
- rdseed
+ rdseed,
+ rdtscp
};