Generalize gdb.reverse/aarch64.exp
authorYao Qi <yao.qi@linaro.org>
Fri, 26 Feb 2016 15:00:36 +0000 (15:00 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 26 Feb 2016 15:00:36 +0000 (15:00 +0000)
commit3263bceb4f76b783a44aeea417a9fb69dab26ee5
tree0951d3386be577765c92f7ebca72d40e691bdf1b
parent11e5f1ec54e7ae87f131ef8506f5af9d0bb1c6db
Generalize gdb.reverse/aarch64.exp

I said we can generialize gdb.reverse/aarch64.exp for other
architectures https://sourceware.org/ml/gdb-patches/2015-05/msg00482.html
and here is the patch to change aarch64.exp so that it can be used to
test for other architectures as well.

gdb/testsuite:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

* gdb.reverse/aarch64.c: [__aarch64__] Include arm_neon.h.
(testcase_ftype): New.
(testcases): New array.
(n_testcases): New.
(main): Call each element in testcases.
* gdb.reverse/aarch64.exp: Remove is_aarch64_target check.
(read_testcase): New.
Do the tests in a loop.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.reverse/aarch64.c
gdb/testsuite/gdb.reverse/aarch64.exp