From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>, gdb-patches@sourceware.org
Cc: jan.kratochvil@redhat.com, pmuldoon@redhat.com
Subject: Re: [PATCH] Run gdb.compile/*.exp on {x86,x86_64,s390}-linux only
Date: Tue, 16 Jan 2018 12:18:00 -0000 [thread overview]
Message-ID: <088c44b5-5454-e187-3984-956a30904ffc@redhat.com> (raw)
In-Reply-To: <1516103412-25086-1-git-send-email-yao.qi@linaro.org>
On 01/16/2018 11:50 AM, Yao Qi wrote:
> I see many gdb.compile/*.exp fails on aarch64-linux and arm-linux,
>
> (gdb) compile code -- ;
> Could not find a compiler matching "^arm(-[^-]*)?-linux(-gnu)?-gcc$"
> (gdb) compile code -- ;
> aarch64-none-linux-gnu-gcc: error: unrecognized command line option '-m64'
>
> I think we need to properly skip tests on targets which don't support
> compile. As far as I know, gdb compile is supported on x86, x86_64,
> and s390.
OOC, how did you determine which archs support it? What is needed to
support compile on other Linux archs?
Isn't the aarch64 issue simply that it's missing a
gdbarch_gcc_target_options implementation to override the default
of "-m64"?
> I think we need to properly skip tests on targets which don't support
> compile. As far as I know, gdb compile is supported on x86, x86_64,
> and s390.
>
> This patch matches the target triplet in
> lib/gdb.exp:skip_compile_feature_tests. If the target triplet is
> *not* x86,x86_64, and s390 linux, return 1; otherwise, do the
> "compile code -- ;" test.
>
> An alternative approach is to modify lib/gdb.exp:skip_compile_feature_tests
> to match these error messages above. However, these error message is
> from libcc1, subject to change, and other targets may have different
> error messages from libcc1.
A problem with white listing is the list tends to stay with the few
initial entries. Forks working on other ports tend to not notice
the feature gated by the check exists and needs work, because they
never had to actively look at the failures and decide to blacklist
their port, or actually fix the underlying gdb issue. Witness the
multiple cases of things like:
# Until "catch fork" is implemented on other targets...
#
if { ![istarget "*-*-linux*"] && ![istarget "*-*-openbsd*"] } then {
... which is stale in the sense that other ports have grown fork
support over time, but nobody updated the tests...
So while whitelisting is the practical thing to do in many cases,
I think it doesn't hurt to raise the bar a little higher in
this case.
So "goto again;": Isn't the aarch64 issue simply that it's missing a
gdbarch_gcc_target_options implementation to override the default
of "-m64"? What else is missing?
Thanks,
Pedro Alves
next prev parent reply other threads:[~2018-01-16 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 11:50 Yao Qi
2018-01-16 12:18 ` Pedro Alves [this message]
2018-01-16 15:14 ` Yao Qi
2018-01-16 16:47 ` Phil Muldoon
2018-01-16 16:59 ` Pedro Alves
2018-01-16 17:20 ` Pedro Alves
2018-01-16 17:45 ` Yao Qi
2018-01-16 18:58 ` Sergio Durigan Junior
2018-01-17 10:06 ` Yao Qi
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=088c44b5-5454-e187-3984-956a30904ffc@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=pmuldoon@redhat.com \
--cc=qiyaoltc@gmail.com \
/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