Index: sim/common/sim-reason.c |
diff --git a/sim/common/sim-reason.c b/sim/common/sim-reason.c |
index 93d5c7cc59490eea69c3c449c29e1cc0e713edbe..f24161d8d04a2747ffe0bfdcee6b9045616e89c4 100644 |
--- a/sim/common/sim-reason.c |
+++ b/sim/common/sim-reason.c |
@@ -36,7 +36,7 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc) |
break; |
case sim_stopped : |
case sim_signalled : |
- *sigrc = sim_signal_to_target (sd, engine->sigrc); |
+ *sigrc = sim_signal_to_gdb_signal (sd, engine->sigrc); |
break; |
default : |
abort (); |