+2016-07-26 Markus Metzger <markus.t.metzger@intel.com>
+
+ * gdb.btrace/record_goto.exp: se is_amd64_regs_target for
+ selecting assembly source files.
+ * gdb.btrace/stepi.exp: se is_amd64_regs_target for selecting
+ assembly source files.
+ * gdb.btrace/tailcall.exp: se is_amd64_regs_target for selecting
+ assembly source files.
+ * gdb.btrace/tailcall-only.exp: se is_amd64_regs_target for
+ selecting assembly source files.
+
2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
* gdb.base/new-ui.exp (do_test_invalid_args): New
# make check RUNTESTFLAGS="gdb.btrace/record_goto.exp COMPILE=1"
standard_testfile record_goto.c
lappend opts debug
-} elseif {[istarget "x86_64-*-*"]} {
- standard_testfile x86_64-record_goto.S
-} elseif {[istarget "i?86-*-*"]} {
- standard_testfile i686-record_goto.S
+} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-record_goto.S
+ } else {
+ standard_testfile i686-record_goto.S
+ }
} else {
verbose "Skipping ${testfile}."
return -1
#
# Luckily, they are similar enough that a single test script can handle
# both.
-if {[istarget "x86_64-*-*"]} {
- standard_testfile x86_64-record_goto.S
-} elseif {[istarget "i?86-*-*"]} {
- standard_testfile i686-record_goto.S
+if [info exists COMPILE] {
+ # make check RUNTESTFLAGS="gdb.btrace/stepi.exp COMPILE=1"
+ standard_testfile record_goto.c
+ lappend opts debug
+} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-record_goto.S
+ } else {
+ standard_testfile i686-record_goto.S
+ }
} else {
- return -1
+ verbose "Skipping ${testfile}."
+ return -1
}
# start inferior
# make check RUNTESTFLAGS="gdb.btrace/tailcall-only.exp COMPILE=1"
standard_testfile tailcall-only.c
lappend opts debug optimize=-O2
-} elseif {[istarget "x86_64-*-*"] && [is_lp64_target]} {
- standard_testfile x86_64-tailcall-only.S
} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
- standard_testfile i686-tailcall-only.S
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-tailcall-only.S
+ } else {
+ standard_testfile i686-tailcall-only.S
+ }
} else {
verbose "Skipping ${testfile}."
- return
+ return -1
}
if [prepare_for_testing tailcall-only.exp $testfile $srcfile $opts] {
# make check RUNTESTFLAGS="gdb.btrace/tailcall.exp COMPILE=1"
standard_testfile tailcall.c
lappend opts debug optimize=-O2
-} elseif {[istarget "x86_64-*-*"]} {
- standard_testfile x86_64-tailcall.S
-} elseif {[istarget "i?86-*-*"]} {
- standard_testfile i686-tailcall.S
+} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-tailcall.S
+ } else {
+ standard_testfile i686-tailcall.S
+ }
} else {
verbose "Skipping ${testfile}."
- return
+ return -1
}
if [prepare_for_testing tailcall.exp $testfile $srcfile $opts] {