btrace, testsuite: fix assembly source file selection
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 22 Jul 2016 11:41:45 +0000 (13:41 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 26 Jul 2016 11:56:27 +0000 (13:56 +0200)
commite0461dbb653dbb3c46ea7a15054fd2c98f879f31
tree3f57e49e9990d4dc28b36afe6d424af5630d3194
parent698f8cbbbb6a47c29967188d9fdf8486920af8b7
btrace, testsuite: fix assembly source file selection

Some btrace tests use assembly source files.  They use the target triplet to
distinguish between x86_64 and ia32 ISA.  This does not work for -m32 tests
without setting the target triplet to i686-?-?.

Instead use is_amd64_regs_target to distinguish between x86_64 and ia32 ISA.

See also https://sourceware.org/ml/gdb-patches/2016-07/msg00256.html.

testsuite/
* gdb.btrace/record_goto.exp: Use is_amd64_regs_target for selecting
assembly source files.
* gdb.btrace/stepi.exp: Use is_amd64_regs_target for selecting
assembly source files.
* gdb.btrace/tailcall.exp: Use is_amd64_regs_target for selecting
assembly source files.
* gdb.btrace/tailcall-only.exp: Use is_amd64_regs_target for selecting
assembly source files.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/record_goto.exp
gdb/testsuite/gdb.btrace/stepi.exp
gdb/testsuite/gdb.btrace/tailcall-only.exp
gdb/testsuite/gdb.btrace/tailcall.exp