Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 2/2] Add aarch64-linux in supports_get_siginfo_type
Date: Wed, 24 Jun 2015 10:45:00 -0000	[thread overview]
Message-ID: <558A8A4B.5090103@redhat.com> (raw)
In-Reply-To: <1434971017-22494-2-git-send-email-yao.qi@linaro.org>

On 06/22/2015 12:03 PM, Yao Qi wrote:
> gdbarch method get_siginfo_type is implemented on aaarch64-linux, so
> supports_get_siginfo_type should return 1 on aaarch64-linux.

typo: aaarch64.

(Patch looks obvious to me.)

I note that a few other archs are also missing here:

 aarch64-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 amd64-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 arm-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 i386-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 m68klinux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 ppc-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 s390-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 tilegx-linux-tdep.c:  set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);

though at the pace this is taking, it'd probably be better to register
linux_get_siginfo_type as default for all Linux archs (in linux-tdep.c:linux_init_abi),
and have archs whoch kernel/ABI uses the non-generic siginfo layout install a
custom get_siginfo_type version.  The supports_get_siginfo_type testsuite function
would then return true for [istarget "*-*-linux*"].  The testsuite would then help
show which archs would those be.

Thanks,
Pedro Alves


  reply	other threads:[~2015-06-24 10:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 11:03 [PATCH 1/2] New proc supports_get_siginfo_type Yao Qi
2015-06-22 11:03 ` [PATCH 2/2] Add aarch64-linux in supports_get_siginfo_type Yao Qi
2015-06-24 10:45   ` Pedro Alves [this message]
2015-06-24 13:31     ` Yao Qi
2015-06-24 13:39       ` Pedro Alves
2015-06-24 10:32 ` [PATCH 1/2] New proc supports_get_siginfo_type Pedro Alves
2015-06-24 13:57   ` 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=558A8A4B.5090103@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --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