aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.h
diff options
context:
space:
mode:
authorGuinevere Larsen <guinevere@redhat.com>2024-03-14 15:24:35 +0100
committerGuinevere Larsen <guinevere@redhat.com>2024-10-28 10:46:33 -0300
commit13f011367694444778dde4600dd86ae79ad8beec (patch)
tree059b551be567584a41cfd0de726536acb0024a9d /gdb/i386-tdep.h
parent2f46cda83b89a4f46625163d679aed3e1ed9ea5c (diff)
downloadfsf-binutils-gdb-13f011367694444778dde4600dd86ae79ad8beec.zip
fsf-binutils-gdb-13f011367694444778dde4600dd86ae79ad8beec.tar.gz
fsf-binutils-gdb-13f011367694444778dde4600dd86ae79ad8beec.tar.bz2
gdb: Start supporting AVX instruction
This patch introduces the information needed to properly identify the VEX prefix, used to signal an AVX and AVX2 instruction, and introduces a helper function to handle all AVX instruction, instead of adding to the 3000 line long recording function. This new function will temporarily set the current thread as "not executing" so that it can read from pseudo registers as we record, since most AVX/AVX2 instructions would benefit from recording ymm registers. The new helper also handles unsupported instructions so that the largest part of the i386_process_record doesn't have to be shifted by 2 spaces, which made an unreadably big patch file. The only expected difference to the end user added by this patch is a small change to the unsupported message. This patch also updates the test gdb.reverse/step-precsave.exp, by recognizing the new output. As a note for the future, we don't handle xmm16-31 and ymm16-31 because those require the EVEX prefix, meaning avx512 support. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/i386-tdep.h')
-rw-r--r--gdb/i386-tdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index 82676c2..9df8611 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -325,6 +325,7 @@ enum record_i386_regnum
X86_RECORD_ES_REGNUM,
X86_RECORD_FS_REGNUM,
X86_RECORD_GS_REGNUM,
+ X86_RECORD_XMM0_REGNUM,
};
#define I386_NUM_GREGS 16