aboutsummaryrefslogtreecommitdiff
path: root/arm-semi.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-06-16 13:03:51 +0100
committerPaul Brook <paul@codesourcery.com>2010-06-16 13:03:51 +0100
commit0e1c9c54afb9ce6be2339923ced025a0d2a541ea (patch)
tree37ecff9eb90d4c880b80bfdcb53ab976dc6236e8 /arm-semi.c
parent1884533c74aea64f8acac735a30bc8f427de161f (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 'arm-semi.c')
-rw-r--r--arm-semi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arm-semi.c b/arm-semi.c
index 5239ffc8c4..0687b03006 100644
--- a/arm-semi.c
+++ b/arm-semi.c
@@ -459,6 +459,7 @@ uint32_t do_arm_semihosting(CPUState *env)
return 0;
}
case SYS_EXIT:
+ gdb_exit(env, 0);
exit(0);
default:
fprintf(stderr, "qemu: Unsupported SemiHosting SWI 0x%02x\n", nr);