]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
testsuite: fix is_aarch32_target
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 28 Mar 2025 04:03:20 +0000 (01:03 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 31 Mar 2025 20:25:20 +0000 (17:25 -0300)
commit01e4635523d24e96837c86ec70b60476e70d6ef3
tree39712f249cc6e33ca572ccb7e32a088d14bc72fc
parenta93f60043a26e0b8b0ea71a63201b9352ce52a6f
testsuite: fix is_aarch32_target

Commit

   c221b2f77080 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_aarch32_target
checks to fail.

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

is_amd64_regs_target had a similar problem, which was fixed by commit

    224d30d39365 testsuite: fix is_amd64_regs_target

This fix — and commit message — are mostly copied from it.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/testsuite/lib/gdb.exp