* remote-sim.c (gdbsim_wait): Pass target signal numbers to
[deliverable/binutils-gdb.git] / sim / erc32 / interf.c
index 3d535744d6aa1dbdf0f4b89110dcfea96c647f87..fe075e1f286b23f2acb11158047ead2fe37dbf8f 100644 (file)
@@ -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;
This page took 0.02293 seconds and 4 git commands to generate.