From: Daniel Jacobowitz <drow@false.org>
To: Mark Mitchell <mark@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: PATCH: Use target values for signals in simulator
Date: Fri, 25 Nov 2005 19:11:00 -0000 [thread overview]
Message-ID: <20051125182514.GG736@nevyn.them.org> (raw)
In-Reply-To: <20051123185806.29594.qmail@mail.codesourcery.com>
On Wed, Nov 23, 2005 at 06:58:06PM -0000, mitchell@mail.codesourcery.com wrote:
> The principal risk with this patch is that I may have failed to
> translate from one of the various simulator's internal representation
> of a signal to the appropriate TARGET_SIGNAL_ value. However, because
> TARGET_SIGNAL_* uses the conventional UNIX values for signals to the
> extent there are conventions (like, TARGET_SIGNAL_SEGV is 11 and
> TARGET_SIGNAL_TRAP is 5) it's unlikely that any places I missed will
> actually matter.
>
> In other words, the simulators were already translating to the host
> signal numbers, which, in practice, are very likely to match up with
> TARGET_SIGNAL_* -- especially since most of the simulators generate a
> pretty limited set of signals. So, if I missed a spot, it's very
> likely that the values are correct anyhow. Therefore, I think this
> patch is pretty safe.
You missed sim/ppc/psim.c:cntrl_c_simulation. Of course there's also
psim_max_iterations_exceeded, which uses signal -1... let's just ignore
that for the moment...
Other than that, I think it plausibly likely that you got everything.
Does anyone object to this change? This has been a long-standing wart.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-11-25 18:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 19:56 mitchell
2005-11-25 19:11 ` Daniel Jacobowitz [this message]
2005-11-25 20:16 ` Mark Mitchell
2005-11-28 22:26 ` Daniel Jacobowitz
2005-11-28 22:43 ` Mark Mitchell
2005-11-29 13:03 ` Hans-Peter Nilsson
2005-11-29 14:08 ` Mark Mitchell
2005-11-25 23:33 ` Mark Kettenis
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=20051125182514.GG736@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=mark@codesourcery.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