diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-10-01 12:02:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-10-01 12:02:57 -0400 |
commit | ff34e6ae3867a5686b53ce3b69584c1c3b553d7d (patch) | |
tree | bd83eadae08c5521eb48d04b303f3180c763633c /gdb/testsuite/gdb.arch | |
parent | 6bb8890e2ccf2b1ae7860fcb6fe4579c4aa9ebf6 (diff) | |
download | gdb-ff34e6ae3867a5686b53ce3b69584c1c3b553d7d.zip gdb-ff34e6ae3867a5686b53ce3b69584c1c3b553d7d.tar.gz gdb-ff34e6ae3867a5686b53ce3b69584c1c3b553d7d.tar.bz2 |
Fix is_amd64_regs_target check in i386-avx512.exp
As reported by Jan here:
https://sourceware.org/ml/gdb-patches/2018-09/msg00831.html
the check that sets the number of available registers is backwards.
gdb/testsuite/ChangeLog:
* gdb.arch/i386-avx512.exp: Fix setting of nr_regs based on
is_amd64_regs_target.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-avx512.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp b/gdb/testsuite/gdb.arch/i386-avx512.exp index d806d5f..cd15e05 100644 --- a/gdb/testsuite/gdb.arch/i386-avx512.exp +++ b/gdb/testsuite/gdb.arch/i386-avx512.exp @@ -93,9 +93,9 @@ gdb_test "break [gdb_get_line_number "third breakpoint here"]" \ gdb_continue_to_breakpoint "continue to third breakpoint in main" if [is_amd64_regs_target] { - set nr_regs 8 -} else { set nr_regs 32 +} else { + set nr_regs 8 } for { set r 0 } { $r < $nr_regs } { incr r } { |