diff options
author | Jeff Law <law@redhat.com> | 1997-06-24 19:45:17 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-06-24 19:45:17 +0000 |
commit | d05b86b7fbedf99179e079746d1f42f71e34bc14 (patch) | |
tree | 605cde2df50b370db57d0ebdef97e99834fed211 /sim/mn10300 | |
parent | a90f6864be7a9a52c04922947aa8abe2a5d32674 (diff) | |
download | gdb-d05b86b7fbedf99179e079746d1f42f71e34bc14.zip gdb-d05b86b7fbedf99179e079746d1f42f71e34bc14.tar.gz gdb-d05b86b7fbedf99179e079746d1f42f71e34bc14.tar.bz2 |
* interp.c (sim_resume): Clear State.exited.
(sim_stop_reason): If State.exited is nonzero, then indicate that
the simulator exited instead of stopped.
* mn10300_sim.h (struct _state): Add exited field.
* simops.c (syscall): Set State.exited for SYS_exit.
Fixes problem found bin Felix.
Diffstat (limited to 'sim/mn10300')
-rw-r--r-- | sim/mn10300/simops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index 239936a..c0243c2 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -2940,6 +2940,7 @@ void OP_F020 (insn, extension) State.exception = SIGABRT; else State.exception = SIGQUIT; + State.exited = 1; break; case SYS_stat: /* added at hmsi */ |