aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/compile.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2003-07-02 19:04:58 +0000
committerMichael Snyder <msnyder@vmware.com>2003-07-02 19:04:58 +0000
commitf0861129d52b00fe57beb4fb0efca668faa3939a (patch)
tree2bac9b6593db78f58f8116a686dd9f2453f83e94 /sim/h8300/compile.c
parentfd13a04acf73b5a59f9212c8a0fac24ddd0d434a (diff)
downloadgdb-f0861129d52b00fe57beb4fb0efca668faa3939a.zip
gdb-f0861129d52b00fe57beb4fb0efca668faa3939a.tar.gz
gdb-f0861129d52b00fe57beb4fb0efca668faa3939a.tar.bz2
2003-06-24 Michael Snyder <msnyder@redhat.com>
* sim-main.h (SIM_WIFSTOPPED, SIM_WSTOPSIG): Define. * compile.c (sim_resume): Use the above to return stop signal.
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r--sim/h8300/compile.c6
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. */