testsuite: fix is_amd64_regs_target
authorMarkus Metzger <markus.t.metzger@intel.com>
Wed, 26 Sep 2018 13:28:28 +0000 (15:28 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 1 Oct 2018 08:06:56 +0000 (10:06 +0200)
commit224d30d393654ff0689429505a3e725cdad1cca5
treeba23faaa0826623a60a10d6ac4ccff97b14c47d8
parent15ec67475f486077ccb45d80c46416bf4949e053
testsuite: fix is_amd64_regs_target

Commit

    c221b2f Testsuite: Add gdb_can_simple_compile

changed the source file name extension of the test program from .s to .c
resulting in compile fails.  This, in turn, causes is_amd64_regs_target
checks to fail.  In gdb.btrace/tailcall.exp and others, this causes the
wrong source file to be picked and the test to fail on 64-bit targets.

Change the test source from an assembly program to a C program using
inline assembly.

testsuite/
* lib/gdb.exp (is_amd64_regs_target): Change assembly to C inline
assembly.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp