* remote-sim.c (gdbsim_wait): Pass target signal numbers to
authorMark Mitchell <mark@codesourcery.com>
Mon, 28 Nov 2005 18:33:03 +0000 (18:33 +0000)
committerMark Mitchell <mark@codesourcery.com>
Mon, 28 Nov 2005 18:33:03 +0000 (18:33 +0000)
commitaba6488e0b73756f31f154d12a228baa82a68d8a
treea341ee1db97cb96dc8145f58351a1e09a20cde9b
parent274b5ecdd76b658da77bc87fb720d79e485a6b2f
* 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_*.
15 files changed:
gdb/ChangeLog
gdb/remote-sim.c
sim/arm/ChangeLog
sim/arm/wrapper.c
sim/common/ChangeLog
sim/common/sim-reason.c
sim/common/sim-signal.c
sim/common/sim-signal.h
sim/d10v/ChangeLog
sim/d10v/interp.c
sim/erc32/ChangeLog
sim/erc32/interf.c
sim/ppc/ChangeLog
sim/ppc/psim.c
sim/ppc/sim_calls.c