aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-11-28 18:33:03 +0000
committerMark Mitchell <mark@codesourcery.com>2005-11-28 18:33:03 +0000
commitaba6488e0b73756f31f154d12a228baa82a68d8a (patch)
treea341ee1db97cb96dc8145f58351a1e09a20cde9b /sim/ppc
parent274b5ecdd76b658da77bc87fb720d79e485a6b2f (diff)
downloadgdb-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/ppc')
-rw-r--r--sim/ppc/ChangeLog6
-rw-r--r--sim/ppc/psim.c2
-rw-r--r--sim/ppc/sim_calls.c5
3 files changed, 10 insertions, 3 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index fe32804..285cfa2 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-28 Mark Mitchell <mark@codesourcery.com>
+
+ * sim_calls.c (gdb/signals.h): Include it.
+ (sim_stop_reason): Use TARGET_SIGNAL_*.
+ * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
+
2005-07-15 Ben Elliston <bje@au.ibm.com>
* hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index a574fe7..e2eac2a 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -572,7 +572,7 @@ cntrl_c_simulation(void *data)
psim_halt(system,
psim_nr_cpus(system),
was_continuing,
- SIGINT);
+ TARGET_SIGNAL_INT);
}
INLINE_PSIM\
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index 08feb39..781ff05 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -44,6 +44,7 @@
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
+#include "gdb/signals.h"
/* Define the rate at which the simulator should poll the host
for a quit. */
@@ -197,13 +198,13 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
case was_continuing:
*reason = sim_stopped;
if (status.signal == 0)
- *sigrc = SIGTRAP;
+ *sigrc = TARGET_SIGNAL_TRAP;
else
*sigrc = status.signal;
break;
case was_trap:
*reason = sim_stopped;
- *sigrc = SIGTRAP;
+ *sigrc = TARGET_SIGNAL_TRAP;
break;
case was_exited:
*reason = sim_exited;