aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-06-24 19:45:17 +0000
committerJeff Law <law@redhat.com>1997-06-24 19:45:17 +0000
commitd05b86b7fbedf99179e079746d1f42f71e34bc14 (patch)
tree605cde2df50b370db57d0ebdef97e99834fed211 /sim/mn10300
parenta90f6864be7a9a52c04922947aa8abe2a5d32674 (diff)
downloadgdb-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.c1
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 */