aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-10-11 17:40:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-10-11 17:40:30 +0000
commit31224d9db8c26f298f30796479309e8611fc43d5 (patch)
treeabe51fbe2b769364a7bc08551ff207ca7b503c89 /gdb/testsuite
parent7c09e5a0f7f3612c42e52d90056f73167cdb4ae5 (diff)
downloadgdb-31224d9db8c26f298f30796479309e8611fc43d5.zip
gdb-31224d9db8c26f298f30796479309e8611fc43d5.tar.gz
gdb-31224d9db8c26f298f30796479309e8611fc43d5.tar.bz2
Check is_amd64_regs_target to to set nr_regs
* gdb.arch/i386-avx.exp: Check is_amd64_regs_target instead of is_ilp32_target to set nr_regs. * gdb.arch/i386-sse.exp: Likewise.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.arch/i386-avx.exp6
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse.exp6
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4354197..93feac9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gdb.arch/i386-avx.exp: Check is_amd64_regs_target instead of
+ is_ilp32_target to set nr_regs.
+ * gdb.arch/i386-sse.exp: Likewise.
+
2012-10-11 Doug Evans <dje@google.com>
PR breakpoints/14643.
diff --git a/gdb/testsuite/gdb.arch/i386-avx.exp b/gdb/testsuite/gdb.arch/i386-avx.exp
index 52a6e4a..32ba5b6 100644
--- a/gdb/testsuite/gdb.arch/i386-avx.exp
+++ b/gdb/testsuite/gdb.arch/i386-avx.exp
@@ -73,10 +73,10 @@ gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
"set first breakpoint in main"
gdb_continue_to_breakpoint "continue to first breakpoint in main"
-if [is_ilp32_target] {
- set nr_regs 8
-} else {
+if [is_amd64_regs_target] {
set nr_regs 16
+} else {
+ set nr_regs 8
}
for { set r 0 } { $r < $nr_regs } { incr r } {
diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp
index 896faf3..4132e0c 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse.exp
@@ -73,10 +73,10 @@ gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
"set first breakpoint in main"
gdb_continue_to_breakpoint "continue to first breakpoint in main"
-if [is_ilp32_target] {
- set nr_regs 8
-} else {
+if [is_amd64_regs_target] {
set nr_regs 16
+} else {
+ set nr_regs 8
}
for { set r 0 } { $r < $nr_regs } { incr r } {