From: Mark Mitchell <mark@codesourcery.com>
To: Hans-Peter Nilsson <hp@bitrange.com>
Cc: Daniel Jacobowitz <drow@false.org>, gdb-patches@sources.redhat.com
Subject: Re: PATCH: Use target values for signals in simulator
Date: Tue, 29 Nov 2005 14:08:00 -0000 [thread overview]
Message-ID: <438BC097.5060205@codesourcery.com> (raw)
In-Reply-To: <Pine.BSF.4.58.0511282127400.63296@dair.pair.com>
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
> Something went generally wrong.
Fixed with this patch; tested by building a cross GDB for cris-elf.
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
[-- Attachment #2: gdb.patch --]
[-- Type: text/plain, Size: 1336 bytes --]
2005-11-28 Mark Mitchell <mark@codesourcery.com>
* sim-signal.c (sim_signal_to_target): Fix typos.
Index: sim-signal.c
===================================================================
RCS file: /cvs/src/src/sim/common/sim-signal.c,v
retrieving revision 1.2
diff -c -5 -p -r1.2 sim-signal.c
*** sim-signal.c 28 Nov 2005 18:33:03 -0000 1.2
--- sim-signal.c 29 Nov 2005 02:42:28 -0000
*************** sim_signal_to_host (SIM_DESC sd, SIM_SIG
*** 93,103 ****
#else
return 1;
#endif
}
! int
sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig)
{
switch (sig)
{
case SIM_SIGINT :
--- 93,103 ----
#else
return 1;
#endif
}
! enum target_signal
sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig)
{
switch (sig)
{
case SIM_SIGINT :
*************** sim_signal_to_target (SIM_DESC sd, SIM_S
*** 113,123 ****
return TARGET_SIGNAL_TRAP;
case SIM_SIGBUS :
return TARGET_SIGNAL_BUS;
! case SIM_SIGSEGV
return TARGET_SIGNAL_SEGV;
case SIM_SIGXCPU :
return TARGET_SIGNAL_XCPU;
--- 113,123 ----
return TARGET_SIGNAL_TRAP;
case SIM_SIGBUS :
return TARGET_SIGNAL_BUS;
! case SIM_SIGSEGV :
return TARGET_SIGNAL_SEGV;
case SIM_SIGXCPU :
return TARGET_SIGNAL_XCPU;
next prev parent reply other threads:[~2005-11-29 2:44 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
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 [this message]
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=438BC097.5060205@codesourcery.com \
--to=mark@codesourcery.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=hp@bitrange.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