From: Richard Henderson <richard.henderson@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [RFC PATCH] testing: probe gdb for supported architectures ahead of time
Date: Fri, 13 Jan 2023 16:34:04 -1000 [thread overview]
Message-ID: <76e73d82-6a44-b9c6-ce60-417e15507b40@linaro.org> (raw)
In-Reply-To: <20230105181533.2235792-1-alex.bennee@linaro.org>
On 1/5/23 10:15, Alex Bennée wrote:
> 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.
>
> [AJB: we still miss some arches, for example gdb uses s390 which fails
> when we look for s390x. Not sure what the best way to deal with that
> is? Maybe define a gdb_arch as we probe each target?]
>
> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
> Cc: Richard Henderson<richard.henderson@linaro.org>
> Cc: Paolo Bonzini<pbonzini@redhat.com>
> ---
> configure | 8 +++++
> scripts/probe-gdb-support.sh | 36 +++++++++++++++++++
> tests/tcg/aarch64/Makefile.target | 2 +-
> tests/tcg/multiarch/Makefile.target | 5 +++
> .../multiarch/system/Makefile.softmmu-target | 6 +++-
> tests/tcg/s390x/Makefile.target | 2 +-
> 6 files changed, 56 insertions(+), 3 deletions(-)
> create mode 100755 scripts/probe-gdb-support.sh
Plausible as a mechanism.
I would say that your script would need to actually examine all of the 'set architecture'
output to map gdb arches to qemu arches. In particular, the :foo stuff is important.
E.g. mips:isa64 (amongst others) means mips64.
I can verify that I no longer get the MicroBlaze error with make check-tcg, so that part
of the patch works.
r~
prev parent reply other threads:[~2023-01-14 2:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-05 18:15 [RFC PATCH] testing: probe gdb for supported architectures ahead of time Alex Bennée
2023-01-14 2:34 ` Richard Henderson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76e73d82-6a44-b9c6-ce60-417e15507b40@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-s390x@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).