Testsuite: Add gdb_can_simple_compile
authorAlan Hayward <alan.hayward@arm.com>
Wed, 12 Sep 2018 10:52:09 +0000 (11:52 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 12 Sep 2018 11:05:58 +0000 (12:05 +0100)
commitc221b2f7708017593d572cf90560dc305bc3bf51
tree6fea35339a3051e50b4dde73e9f2f1b15db329ca
parented84881fcfd45edfee0d3f9e9af0d3eb3bafe362
Testsuite: Add gdb_can_simple_compile

Simplfy gdb.exp by adding a function that will attempt to
compile a piece of code, then clean up.

gdb/testsuite

* lib/gdb.exp (gdb_can_simple_compile): Add proc.
(support_complex_tests): Use gdb_can_simple_compile.
(is_ilp32_target): Likewise.
(is_lp64_target): Likewise.
(is_64_target): Likewise.
(is_amd64_regs_target): Likewise.
(is_aarch32_target): Likewise.
(gdb_int128_helper): Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp