aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-09-30 21:09:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-09-30 21:09:16 +0000
commit0ae04d73678af8b975394e4a40e8326ddb7e5b9d (patch)
tree9eea5c5e69f3d62ae2cfa2b28b7ca6c330e5bb95 /sdl.c
parentebc054881ff60643abe1995b4bcdc558264470f2 (diff)
downloadqemu-0ae04d73678af8b975394e4a40e8326ddb7e5b9d.zip
qemu-0ae04d73678af8b975394e4a40e8326ddb7e5b9d.tar.gz
qemu-0ae04d73678af8b975394e4a40e8326ddb7e5b9d.tar.bz2
allow Ctrl-C to be pressed when using gdb stub and SDL
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@394 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index e9c28f2..d8ec2c6 100644
--- a/sdl.c
+++ b/sdl.c
@@ -42,8 +42,8 @@
#include <SDL.h>
-#include "cpu-i386.h"
-#include "exec.h"
+#include "cpu.h"
+#include "exec-all.h"
#include "vl.h"
@@ -264,6 +264,10 @@ void sdl_display_init(DisplayState *ds)
fprintf(stderr, "Could not initialize SDL - exiting\n");
exit(1);
}
+ /* NOTE: we still want Ctrl-C to work, so we undo the SDL redirections */
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
+
ds->dpy_update = sdl_update;
ds->dpy_resize = sdl_resize;
ds->dpy_refresh = sdl_refresh;