mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* 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_*.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2005-11-28 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* interp.c (gdb/signals.h): Include it.
|
||||
(sim_stop_reason): Use TARGET_SIGNAL_*.
|
||||
|
||||
2005-03-23 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* configure: Regenerate.
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user