]> Git Repo - qemu.git/commit - gdbstub.c
gdbstub: send a termination packet instead of crashing gdb
authorKONRAD Frederic <[email protected]>
Tue, 20 Mar 2018 09:39:33 +0000 (10:39 +0100)
committerPeter Maydell <[email protected]>
Tue, 27 Mar 2018 20:16:27 +0000 (21:16 +0100)
commit1bb982b8fc2f98246d47c83833c20bf858d649f4
tree6edad159cb1232a1bf371fc1f21dda3b55be5d33
parentf55e88f2ab09e9348b0d1d233acd9518a7570f16
gdbstub: send a termination packet instead of crashing gdb

Since the commit:
commit 4486e89c219c0d1b9bd8dfa0b1dd5b0d51ff2268
Author: Stefan Hajnoczi <[email protected]>
Date:   Wed Mar 7 14:42:05 2018 +0000

    vl: introduce vm_shutdown()

GDB crashes when qemu exits (at least on sparc-softmmu):
Remote communication error.  Target disconnected.: Connection reset by peer.
Quitting: putpkt: write failed: Broken pipe.

So send a packet to exit GDB before we exit QEMU:
[Inferior 1 (Thread 0) exited normally]

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: KONRAD Frederic <[email protected]>
Message-id: 1521538773[email protected]
Signed-off-by: Peter Maydell <[email protected]>
gdbstub.c
include/exec/gdbstub.h
vl.c
This page took 0.031863 seconds and 4 git commands to generate.