diff options
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r-- | sim/h8300/compile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index f416695..7635655 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -3575,6 +3575,12 @@ sim_resume (SIM_DESC sd, int step, int siggnal) sim_engine_set_run_state (sd, sim_exited, SIM_WEXITSTATUS (h8_get_reg (sd, 0))); } + else if (SIM_WIFSTOPPED (h8_get_reg (sd, 0))) + { + /* Pass the stop signal up to gdb. */ + sim_engine_set_run_state (sd, sim_stopped, + SIM_WSTOPSIG (h8_get_reg (sd, 0))); + } else { /* Treat it as a sigtrap. */ |