diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-11-28 18:33:03 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-11-28 18:33:03 +0000 |
commit | aba6488e0b73756f31f154d12a228baa82a68d8a (patch) | |
tree | a341ee1db97cb96dc8145f58351a1e09a20cde9b /sim/d10v/interp.c | |
parent | 274b5ecdd76b658da77bc87fb720d79e485a6b2f (diff) | |
download | gdb-aba6488e0b73756f31f154d12a228baa82a68d8a.zip gdb-aba6488e0b73756f31f154d12a228baa82a68d8a.tar.gz gdb-aba6488e0b73756f31f154d12a228baa82a68d8a.tar.bz2 |
* remote-sim.c (gdbsim_wait): Pass target signal numbers to
sim_resume. Expect target signal numbers from sim_stop_reason.
* wrapper.c (gdb/signals.h): Include it.
(SIGTRAP): Don't define.
(SIGBUS): Likewise.
(sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*.
* sim-reason.c (sim_stop_reason): Use
sim_signal_to_target, not sim_signal_to_host.
* sim-signal.c (sim_signal_to_host): Fix typo.
(sim_signal_to_target): New function.
* interp.c (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* interf.c: (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* sim_calls.c (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r-- | sim/d10v/interp.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index e4bae22..26f36ec 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -6,6 +6,7 @@ #include "d10v_sim.h" #include "gdb/sim-d10v.h" +#include "gdb/signals.h" enum _leftright { LEFT_FIRST, RIGHT_FIRST }; @@ -1277,17 +1278,13 @@ sim_stop_reason (sd, reason, sigrc) case SIG_D10V_BUS: *reason = sim_stopped; -#ifdef SIGBUS - *sigrc = SIGBUS; -#else - *sigrc = SIGSEGV; -#endif + *reson = TARGET_SIGNAL_BUS; break; default: /* some signal */ *reason = sim_stopped; if (stop_simulator && !State.exception) - *sigrc = SIGINT; + *sigrc = TARGET_SIGNAL_INT; else *sigrc = State.exception; break; |