New proc is_aarch64_target
authorYao Qi <yao.qi@linaro.org>
Tue, 7 Jul 2015 15:58:20 +0000 (16:58 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 7 Jul 2015 15:58:20 +0000 (16:58 +0100)
commit4931af25b8ab8f9db77c40142d52e4513762ca97
treeb10367802fc2f055d67037bc7a220d688f42de66
parent9fcf688e800e089217ecc8a47b228be180866df8
New proc is_aarch64_target

Some tests expect the the target is aarch64, but checking target
triplet is not accurate, because target triplet can be aarch64 but
the program is in arm (or aarch32) state.

This patch addes a new proc is_aarch64_target which returns true
if the target is on aarch64 state.

gdb/testsuite:

2015-07-07  Yao Qi  <yao.qi@linaro.org>

* gdb.arch/aarch64-atomic-inst.exp: Check is_aarch64_target
instead of istarget "aarch64*-*-*".
* gdb.arch/aarch64-fp.exp: Likewise.
* gdb.base/float.exp: Likewise.
* gdb.reverse/aarch64.exp: Likewise.
* lib/gdb.exp (is_aarch64_target): New proc.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
gdb/testsuite/gdb.arch/aarch64-fp.exp
gdb/testsuite/gdb.base/float.exp
gdb/testsuite/gdb.reverse/aarch64.exp
gdb/testsuite/lib/gdb.exp