aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 01:32:59 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:42:34 -0500
commit4935610a577445aef20643a226bca7e6bd11fcb4 (patch)
tree3cac6f543044393589d1ec41d315b04b21e5df5c
parentcc6aaa31491cacb485e07ac9adfe4f7d971b2ae2 (diff)
downloadgdb-4935610a577445aef20643a226bca7e6bd11fcb4.zip
gdb-4935610a577445aef20643a226bca7e6bd11fcb4.tar.gz
gdb-4935610a577445aef20643a226bca7e6bd11fcb4.tar.bz2
sim: iq2000: add fallback for exit syscall
Make sure this syscall always exits regardless of the exit code.
-rw-r--r--sim/iq2000/iq2000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/iq2000/iq2000.c b/sim/iq2000/iq2000.c
index 087646b..f35e91e 100644
--- a/sim/iq2000/iq2000.c
+++ b/sim/iq2000/iq2000.c
@@ -77,6 +77,9 @@ do_syscall (SIM_CPU *current_cpu, PCADDR pc)
/* Fail. */
puts ("fail");
exit (1);
+ default:
+ puts ("unknown exit");
+ exit (2);
}
case TARGET_NEWLIB_SYS_write: