]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
gdbstub: Fix vCont behaviour
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Tue, 14 Feb 2017 17:07:48 +0000 (18:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Feb 2017 13:06:56 +0000 (14:06 +0100)
commit544177ad1cfd78a7e1106d9b82b130fd7959efd8
tree4293af9d3115e9c535588c229c06e55dd78d5c57
parent2d76e82395979b44e055b69b7e453f43c5c060cf
gdbstub: Fix vCont behaviour

When GDB issues a "vCont", QEMU was not handling it correctly when
multiple VCPUs are active.
For vCont, for each thread (VCPU), it can be specified whether to
single step, continue or stop that thread. The default is to stop a
thread.
However, when (for example) "vCont;s:2" is issued, all VCPUs continue
to run, although all but VCPU nr 2 are to be stopped.

This patch completely rewrites the vCont parsing code.

Please note that this improvement only works in system emulation mode,
when in userspace emulation mode the old behaviour is preserved.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Message-Id: <1487092068-16562-3-git-send-email-imbrenda@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
gdbstub.c