]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
gdbserver: Don't send a GDB syscall until the system CPU is stopped
authorMeador Inge <meadori@codesourcery.com>
Thu, 15 Mar 2012 17:49:45 +0000 (17:49 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 24 Mar 2012 14:12:27 +0000 (14:12 +0000)
commitcdb432b2020d3a5b22a7c06278088ccc7d1b2843
treeca3b412dd1afd124dfcfc9b9dcf98b466114c684
parent3179d694a8dcaa091131e3db644d445c0130713e
gdbserver: Don't send a GDB syscall until the system CPU is stopped

Fix an issue where the GDB server implementation was sending GDB syscall
requests while the system CPU was still running.  Syscall requests must
be sent while the CPU is stopped otherwise replies from the GDB client
might get dropped and the GDB server might be incorrectly transitioned
into a 'RUN_STATE_PAUSED' state.

Signed-off-by: Meador Inge <meadori@codesourcery.com>
[PMM: trivial rebase, reinstated comma after last item in RSState enum]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
gdbstub.c