Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: fix handling of catch signal SIGTRAP/SIGINT
Date: Fri, 03 May 2013 14:24:00 -0000	[thread overview]
Message-ID: <5183C881.7030801@redhat.com> (raw)
In-Reply-To: <1367531384.3007.83.camel@soleil>

On 05/02/2013 10:49 PM, Philippe Waroquiers wrote:
>>From the doc and the above, I understand the idea is to have 3 different
> "use cases":
>  1. catch signal
>  2. catch signal all
>  3. catch signal ... 1 or more explicit signals ...
> (the explicit signals are the same as what can be given to handle).
> The line above properly implemented the difference between 1 and 2
> but was also used for signals listed in 3. This was ok for not internals
> signals, but was always ignoring internal signals member of
> signals_to_be_caught. 
> So, I think the condition "|| !INTERNAL_SIGNAL" is still needed
> otherwise the case 1. will change of behaviour.

Indeed.  Makes sense.  I should have checked the manual.

>>From my point of view, the behaviour described by the doc is quite
> ok (but needs this patch :).

I agree.

> As described above, I think the '|| !INTERNAL_SIGNAL' is needed to
> only catch non internal signals when 'catch signal' was given by the
> user rather than 'catch signal all'.

Agreed.

>> There are other uses of INTERNAL_SIGNAL(signal_number) in the file.
>> Wouldn't they need updating too?
> I checked the other uses, I think these are ok e.g. INTERNAL_SIGNAL
> is not used when an explicit list of signal is given.

That's good info.

> Thanks for the detailed review. Waiting for more feedback from Tromey,
> I will already prepare another version.

Knowing the "catch signal" vs "catch signal all" difference, the updated
patch becomes obviously correct then.  If you had sent it, I'd
probably okay it.  ;-)

Thanks,
-- 
Pedro Alves


  reply	other threads:[~2013-05-03 14:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-01 18:42 Philippe Waroquiers
2013-05-02 18:45 ` Pedro Alves
2013-05-02 21:49   ` Philippe Waroquiers
2013-05-03 14:24     ` Pedro Alves [this message]
2013-05-03 17:39       ` Philippe Waroquiers
2013-05-03 18:13         ` Pedro Alves
2013-05-03 19:18           ` Philippe Waroquiers

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=5183C881.7030801@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=philippe.waroquiers@skynet.be \
    /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