Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 2/2] Add aarch64-linux in supports_get_siginfo_type
Date: Wed, 24 Jun 2015 13:39:00 -0000	[thread overview]
Message-ID: <558AB318.2060003@redhat.com> (raw)
In-Reply-To: <86ioadqlmd.fsf@gmail.com>

On 06/24/2015 02:30 PM, Yao Qi wrote:

>>
>> 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.
> 
> Change like this may cause some fails for some linux targets which need
> their custom get_siginfo_type implementations.  

Right, that's how I was thinking the tests would help.  As is currently,
arch maintainers miss that the feature even exists.

> Here is a patch below,
> I rerun siginfo-obj.exp and siginfo-thread.exp on aarch64/arm/x86_64 linux.

Thanks.

> From 476653a2990b4ebfac806b0da6ffa24b5672ece9 Mon Sep 17 00:00:00 2001
> From: Yao Qi <yao.qi@linaro.org>
> Date: Fri, 19 Jun 2015 14:50:33 +0100
> Subject: [PATCH] Call set_gdbarch_get_siginfo_type in linux_init_abi
> 
> linux_get_siginfo_type is installed to many linux gdbarch.  This patch
> is to move this to a common area linux-tdep.c:linux_init_abi, so that
> linux_get_siginfo_type is installed to every linux gdbarch.  If some
> linux gdbarch needs its own version, please override it in
> $ARCH_linux_init_abi.  In the testsuite, we enable siginfo related
> tests for all linux targets.

(Or if you need a quick fix, set it to NULL in that particular arch's
gdbarch init function.)

Looks good to me.  Thanks for doing this.

-- 
Pedro Alves


  reply	other threads:[~2015-06-24 13:39 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
2015-06-24 13:31     ` Yao Qi
2015-06-24 13:39       ` Pedro Alves [this message]
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=558AB318.2060003@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