From: Yao Qi <qiyaoltc@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Sergio Durigan Junior <sergiodj@redhat.com>
Subject: Re: [testsuite patch] Skip py-unwind.exp on x86_64 -m32
Date: Tue, 19 Jul 2016 10:06:00 -0000 [thread overview]
Message-ID: <CAH=s-PNpb0m4w+Qp775oWyg4DHkB9Gio1Lq0jeZMmhPGEJtb6A@mail.gmail.com> (raw)
In-Reply-To: <20160718113348.GA25789@host1.jankratochvil.net>
On Mon, Jul 18, 2016 at 12:33 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Mon, 18 Jul 2016 12:04:27 +0200, Yao Qi wrote:
>> This problem is slightly different from "how to run testsuite in cross-arch
>> mode", IMO.
>> py-unwind.py defines a unwinder, in an arch-specific way. It has nothing
>> wrong.
>> However, py-unwind.py should be more portable, which means, it should
>> define unwdiner for each arch it supports, and py-unwind.exp or py-unwind.py
>> chooses the right python unwinder according to the arch. IOW, we need to
>> define a python unwinder for i386, and use it when arch is i386.
>
> There will always exist at least one unsupported arch for an arch-specific
> testcase. I do not think it makes sense to say that very every testcase in
> the testsuite must support very every arch supported by GDB.
>
> So we can say that py-unwind.exp just does not support arch i386.
> I do not find that wrong.
It is still better to get one test case cover one more arch.
>
> Wrong is that it should not FAIL on unsupported arch, it should skip the
> testcase on unsupported arch.
>
IMO, it is wrong that py-unwind.py creates an x86_64 specific unwinder.
py-unwind.py should create a unwinder instance according to the arch if the
arch is supported. On i386, or other archs, like arm, mips, py-unwind.py
can error, and py-unwind.exp knows unwinder is not created successfully,
and mark the test unsupported. If people want to extend py-unwind.py for
their archs, they can modify py-unwind.py to create an unwinder instance
for their own arch.
> The problem here is that py-unwind.exp thinks that it runs on arch x86_64 but
> it runs on arch i386.
>
> Even if py-unwind.exp did support i386 it would still FAIL because it would
> run the testcase for %rbp/%rsp/%rip.
py-unwind.exp does nothing on arch specific thing, so py-unwind.exp shouldn't
be aware of the arch difference, but py-unwind.py should.
--
Yao (齐尧)
next prev parent reply other threads:[~2016-07-19 10:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-17 14:30 Jan Kratochvil
2016-07-18 10:04 ` Yao Qi
2016-07-18 11:34 ` Jan Kratochvil
2016-07-19 10:06 ` Yao Qi [this message]
2016-07-19 18:04 ` Pedro Alves
2016-07-20 11:20 ` Yao Qi
2016-07-20 13:49 ` Pedro Alves
2016-07-20 14:19 ` [commit] " Jan Kratochvil
2016-07-19 19:30 ` Sergio Durigan Junior
2016-07-20 13:48 ` Pedro Alves
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='CAH=s-PNpb0m4w+Qp775oWyg4DHkB9Gio1Lq0jeZMmhPGEJtb6A@mail.gmail.com' \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=sergiodj@redhat.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