diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2024-03-14 15:24:35 +0100 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2024-10-28 10:46:33 -0300 |
commit | 13f011367694444778dde4600dd86ae79ad8beec (patch) | |
tree | 059b551be567584a41cfd0de726536acb0024a9d /gdb/testsuite/gdb.reverse | |
parent | 2f46cda83b89a4f46625163d679aed3e1ed9ea5c (diff) | |
download | binutils-13f011367694444778dde4600dd86ae79ad8beec.zip binutils-13f011367694444778dde4600dd86ae79ad8beec.tar.gz binutils-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/testsuite/gdb.reverse')
-rw-r--r-- | gdb/testsuite/gdb.reverse/step-precsave.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.reverse/step-precsave.exp b/gdb/testsuite/gdb.reverse/step-precsave.exp index a3979b7..1dc4251 100644 --- a/gdb/testsuite/gdb.reverse/step-precsave.exp +++ b/gdb/testsuite/gdb.reverse/step-precsave.exp @@ -46,7 +46,7 @@ with_timeout_factor 20 { -re -wrap "Breakpoint .* end of main .*" { pass $gdb_test_name } - -re -wrap "Process record does not support instruction 0xc5 at.*" { + -re -wrap "Process record does not support VEX instruction.*" { kfail "record/23188" $gdb_test_name } -re -wrap "Process record does not support instruction 0xfae64 at.*" { |