gdbstub: Send a reply to the vKill packet.
commit0f8b09b22234460cb5b8766a25066cf6b5f06842
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 15 Feb 2019 09:56:41 +0000 (15 09:56 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Feb 2019 09:56:41 +0000 (15 09:56 +0000)
tree2bb4b8e5422dc39a98281abe7017003f5335a69c
parentd8efe78e8039511b95c23d75bb48eca6873fbb0f
gdbstub: Send a reply to the vKill packet.

Per the GDB remote protocol documentation

https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#index-vKill-packet

the debug stub is expected to send a reply to the 'vKill' packet.  At
least some versions of GDB crash if the gdb stub simply exits without
sending a reply.  This patch fixes QEMU's gdb stub to conform to the
expected behavior.

Note that QEMU's existing handling of the legacy 'k' packet is
correct: in that case GDB does not expect a reply, and QEMU does not
send one.

Signed-off-by: Sandra Loosemore <sandra@codesourcery.com>
Message-id: 1550008033-26540-1-git-send-email-sandra@codesourcery.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
gdbstub.c