Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagerm.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Pedro Alves <palves@redhat.com>
Subject: Re: [PATCH] MIPS Linux signals
Date: Mon, 11 Jun 2012 16:09:00 -0000	[thread overview]
Message-ID: <4FD61839.80500@eagerm.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1206062255210.23962@tp.orcam.me.uk>

On 06/06/2012 03:52 PM, Maciej W. Rozycki wrote:
> On Fri, 1 Jun 2012, Michael Eager wrote:
>

>   I find this unreadable (and buggy too, which is likely a consequence),
> per observations above please rewrite this as below:
>
>    if (signo>= MIPS_SIGRTMIN&&  signo<= MIPS_SIGRTMAX)
>      {
>        /* GDB_SIGNAL_REALTIME values are not contiguous, map parts of
>           the MIPS block to the respective GDB_SIGNAL_REALTIME blocks.  */
>        signo -= MIPS_SIGRTMIN;
>        if (signo == 0)
> 	return GDB_SIGNAL_REALTIME_32;
>        else if (signo<  32)
> 	return ((enum gdb_signal) (signo - 1 + (int) GDB_SIGNAL_REALTIME_33));
>        else
> 	return ((enum gdb_signal) (signo - 32 + (int) GDB_SIGNAL_REALTIME_64));
>      }
>
>    return GDB_SIGNAL_UNKNOWN;
> }
>
> -- the casts are probably redundant, but let them stay.
>
>   OK with this change, the rest is fine with me.  Thanks for tackling this
> problem.

Checked in with indicated changes.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


      parent reply	other threads:[~2012-06-11 16:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 20:21 Michael Eager
2012-06-01 20:53 ` Maciej W. Rozycki
2012-06-01 21:07   ` Michael Eager
2012-06-04 15:49     ` Pedro Alves
2012-06-04 16:26       ` [PATCH 1/2] gdbarch_gdb_signal_from_target: Mention host independence Pedro Alves
2012-06-04 16:26       ` [PATCH 2/2] Make gdbarch_gdb_signal_from_target a method with predicate Pedro Alves
2012-06-01 22:52   ` [PATCH] MIPS Linux signals Michael Eager
2012-06-06 22:52     ` Maciej W. Rozycki
2012-06-06 23:12       ` Michael Eager
2012-06-11 16:09       ` Michael Eager [this message]

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=4FD61839.80500@eagerm.com \
    --to=eager@eagerm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@codesourcery.com \
    --cc=palves@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