testing: probe gdb for supported architectures ahead of time
commitbcbc36a98fe84e19c972bac19dd94aaf3a06a628
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 3 Mar 2023 02:57:59 +0000 (2 18:57 -0800)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Mar 2023 20:44:09 +0000 (7 20:44 +0000)
tree8aabfddf7312eb4ca7aa9b1a50cec2c68bb4efe6
parent61b2e136db5a628cadcb4a1a5c68efbab4c8e2fb
testing: probe gdb for supported architectures ahead of time

Currently when we encounter a gdb that is old or not built with
multiarch in mind we fail rather messily. Try and improve the
situation by probing ahead of time and setting
HOST_GDB_SUPPORTS_ARCH=y in the relevant tcg configs. We can then skip
and give a more meaningful message if we don't run the test.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230302190846.2593720-24-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-24-richard.henderson@linaro.org>
MAINTAINERS
configure
scripts/probe-gdb-support.py [new file with mode: 0755]
tests/tcg/aarch64/Makefile.target
tests/tcg/multiarch/Makefile.target
tests/tcg/multiarch/system/Makefile.softmmu-target
tests/tcg/s390x/Makefile.target