From: Alan Hayward <Alan.Hayward@arm.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
nd <nd@arm.com>
Subject: Re: [PATCH 3/4] Use flexible target descriptors for aarch64
Date: Mon, 06 Nov 2017 12:58:00 -0000 [thread overview]
Message-ID: <BA0CD846-2C17-4381-8295-4B9413CDA12B@arm.com> (raw)
In-Reply-To: <86a7zzwrs5.fsf@gmail.com>
> On 6 Nov 2017, at 11:49, Yao Qi <qiyaoltc@gmail.com> wrote:
>
> Alan Hayward <Alan.Hayward@arm.com> writes:
>
>> In the existing code, osabi is never set for aarch64 - the osabi line is missing
>> from the .xml files. Some other architectures set to “GNU/Linux”. I assumed
>> there was a reason aarch64 didn’t do this. I didn’t want to change
>> this behaviour,
>
> Agreed, it should be a separated patch to address this, if needed. See
> PR 19895 "gdbserver target description on aarch64/arm doesn't specify osabi"
>
>> so instead in my code osabi is set to “”.
>
> However, setting osabi to "" in GDBserver may slightly change the
> the XML content GDB received from GDBserver. Without your changes, the
> XML contents received from GDBserver doesn't have "<osabi>XXX</osabi>",
> however with your changes, the XML contents have "<osabi></osabi>". Can
> you confirm this? The change like this doesn't affect any GDB's
> behavior, because osabi in GDB side is still GDB_OSABI_UNKNOWN.
>
> On the other hand, "osabi" is an optional field,
> https://sourceware.org/gdb/current/onlinedocs/gdb/Target-Description-Format.html
> so it is optional in "tdesc" too. IMO, we need to remove
> "tdesc->osabi != NULL" from the assert, and let GDBserver only generate
> "<osabi>XXX</osabi>" when tdesc->osabi isn't NULL. What do you think?
>
Given that osabi is optional, it makes sense to me that it should be removed from
the assert.
Setting to “” feels a bit of a hack.
Alan.
next prev parent reply other threads:[~2017-11-06 12:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 8:31 Alan Hayward
2017-10-30 12:27 ` Yao Qi
2017-10-30 13:00 ` Yao Qi
[not found] ` <A0F02AC1-8FF2-4022-B089-F68D2949CEB6@arm.com>
2017-11-06 10:06 ` Alan Hayward
2017-11-06 11:49 ` Yao Qi
2017-11-06 12:58 ` Alan Hayward [this message]
[not found] ` <B3614F09-2732-4B13-A45D-5EC111A8DC7E@arm.com>
2017-11-22 15:47 ` Yao Qi
2017-11-22 16:00 ` Yao Qi
[not found] ` <8E1DED12-D169-49CD-A9A3-388280EBDB60@arm.com>
2017-11-23 17:53 ` [PATCH 4/4] Add xml selftests Yao Qi
2017-11-23 16:19 ` [PATCH 3/4] Use flexible target descriptors for aarch64 Alan Hayward
2017-11-23 17:50 ` Yao Qi
2017-11-24 11:34 ` Alan Hayward
2017-11-24 12:49 ` Yao Qi
2017-11-24 13:26 ` [PATCH] fix aarch64-none-elf build error Alan Hayward
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=BA0CD846-2C17-4381-8295-4B9413CDA12B@arm.com \
--to=alan.hayward@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=nd@arm.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