From 0e1c9c54afb9ce6be2339923ced025a0d2a541ea Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Wed, 16 Jun 2010 13:03:51 +0100 Subject: GDB exit status for semihosting Report exit status to GDB when a semihosted application exits. Signed-off-by: Paul Brook --- m68k-semi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'm68k-semi.c') diff --git a/m68k-semi.c b/m68k-semi.c index 48e3bd38be..d16bc671c6 100644 --- a/m68k-semi.c +++ b/m68k-semi.c @@ -172,6 +172,7 @@ void do_m68k_semihosting(CPUM68KState *env, int nr) args = env->dregs[1]; switch (nr) { case HOSTED_EXIT: + gdb_exit(env, env->dregs[0]); exit(env->dregs[0]); case HOSTED_OPEN: if (use_gdb_syscalls()) { -- cgit v1.2.3