New proc supports_get_siginfo_type
authorYao Qi <yao.qi@linaro.org>
Wed, 24 Jun 2015 13:53:03 +0000 (14:53 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 24 Jun 2015 13:53:03 +0000 (14:53 +0100)
commit4d7be0075acd2083772944209c765a7c332a1727
treec34d01a6c78f9f7f61eb225e4f803dfad992f973
parentdc06243f6f87aa52222dab0ef45bb9a5119724da
New proc supports_get_siginfo_type

Both siginfo-obj.exp and siginfo-thread.exp have the same code
checking the support of geting a type of siginfo for a given arch.
This patch is to move these code into a proc supports_get_siginfo_type.

gdb/testsuite:

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

* lib/gdb.exp (supports_get_siginfo_type): New proc.
* gdb.base/siginfo-obj.exp: Invoke supports_get_siginfo_type.
* gdb.base/siginfo-thread.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/siginfo-obj.exp
gdb/testsuite/gdb.base/siginfo-thread.exp
gdb/testsuite/lib/gdb.exp