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/erc32 | |
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/erc32')
-rw-r--r-- | sim/erc32/ChangeLog | 5 | ||||
-rw-r--r-- | sim/erc32/interf.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index 7bf7bc2..4636b90 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,8 @@ +2005-11-28 Mark Mitchell <mark@codesourcery.com> + + * interf.c: (gdb/signals.h): Include it. + (sim_stop_reason): Use TARGET_SIGNAL_*. + 2005-07-08 Ben Elliston <bje@au.ibm.com> * func.c: Remove ANSI_PROTOTYPES conditional code. diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 3d53574..fe075e1 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -33,6 +33,7 @@ #include "sim-config.h" #include "gdb/remote-sim.h" +#include "gdb/signals.h" #define PSR_CWP 0x7 @@ -386,16 +387,13 @@ sim_stop_reason(sd, reason, sigrc) switch (simstat) { case CTRL_C: *reason = sim_stopped; - *sigrc = SIGINT; + *sigrc = TARGET_SIGNAL_INT; break; case OK: case TIME_OUT: case BPT_HIT: *reason = sim_stopped; -#ifdef _WIN32 -#define SIGTRAP 5 -#endif - *sigrc = SIGTRAP; + *sigrc = TARGET_SIGNAL_TRAP; break; case ERROR: *sigrc = 0; |