qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] Qemu: gdbstub: fix vCont
@ 2016-10-14 11:53 Claudio Imbrenda
  2016-10-14 11:53 ` [Qemu-devel] [PATCH v2 1/2] move vm_start to cpus.c Claudio Imbrenda
  2016-10-14 11:53 ` [Qemu-devel] [PATCH v2 2/2] gdbstub: Fix vCont behaviour Claudio Imbrenda
  0 siblings, 2 replies; 18+ messages in thread
From: Claudio Imbrenda @ 2016-10-14 11:53 UTC (permalink / raw)
  To: qemu-devel

This small patchset fixes the incorrect behaviour of the vCont command
in the gdb stub. 

The first patch, as suggested be Paolo, refactors some code. The most
visible change is that it moves vm_start to cpus.c 

The second one fixes the incorrect behaviour of the vCont command.
Previously, continuing or stepping a single thread (CPU) caused all
other CPUs to be started too, whereas the GDB specification clearly
states that without a default action all threads not explicitly
mentioned in the command should stay stopped.

So if the Qemu gdbstub receives a  vCont;c:1  packet, no other CPU
should be restarted except the first, and when a  vCont;s:1  is
received, the first CPU should be stepped without restarting the others.
With this patchset Qemu now behaves as expected.

See here for reference material about the packets: 
https://sourceware.org/gdb/onlinedocs/gdb/Packets.html

Claudio Imbrenda (2):
  move vm_start to cpus.c
  gdbstub: Fix vCont behaviour

 cpus.c                     |  61 +++++++++++-
 gdbstub.c                  | 226 +++++++++++++++++++++++++++++++++++----------
 hw/i386/kvmvapic.c         |   2 +
 include/sysemu/cpus.h      |   1 +
 include/sysemu/sysemu.h    |   2 +
 target-s390x/misc_helper.c |   2 +
 vl.c                       |  32 +------
 7 files changed, 249 insertions(+), 77 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-01-27 17:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 11:53 [Qemu-devel] [PATCH v2 0/2] Qemu: gdbstub: fix vCont Claudio Imbrenda
2016-10-14 11:53 ` [Qemu-devel] [PATCH v2 1/2] move vm_start to cpus.c Claudio Imbrenda
2016-10-19  8:29   ` Christian Borntraeger
2017-01-27 16:31   ` Alex Bennée
2017-01-27 16:54     ` Claudio Imbrenda
2017-01-27 17:05       ` Alex Bennée
2017-01-27 17:16         ` Claudio Imbrenda
2016-10-14 11:53 ` [Qemu-devel] [PATCH v2 2/2] gdbstub: Fix vCont behaviour Claudio Imbrenda
2016-10-26  7:56   ` Christian Borntraeger
2016-10-27 11:40     ` Pedro Alves
2016-10-28 13:35       ` Claudio Imbrenda
2016-10-28 14:01         ` Pedro Alves
2016-10-28 14:25           ` Claudio Imbrenda
2016-11-02 14:50             ` Pedro Alves
2017-01-27 16:49   ` Alex Bennée
2017-01-27 17:07   ` Alex Bennée
2017-01-27 17:19     ` Claudio Imbrenda
2017-01-27 17:33       ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).