diff options
author | Paul Brook <paul@codesourcery.com> | 2010-06-16 13:03:51 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-06-16 13:03:51 +0100 |
commit | 0e1c9c54afb9ce6be2339923ced025a0d2a541ea (patch) | |
tree | 37ecff9eb90d4c880b80bfdcb53ab976dc6236e8 /m68k-semi.c | |
parent | 1884533c74aea64f8acac735a30bc8f427de161f (diff) |
GDB exit status for semihosting
Report exit status to GDB when a semihosted application exits.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'm68k-semi.c')
-rw-r--r-- | m68k-semi.c | 1 |
1 files changed, 1 insertions, 0 deletions
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()) { |