]> git.proxmox.com Git - mirror_qemu.git/commit
gdbstub: add multiprocess support to vCont packets
authorLuc Michel <luc.michel@greensocs.com>
Mon, 7 Jan 2019 15:23:46 +0000 (15:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Jan 2019 15:23:46 +0000 (15:23 +0000)
commite40e5204af8388e605df2325d9b562c05919350e
treea3d8f58937a81191bf0588112c79b84794ad468b
parent7d8c87da79c23b2caa8f68a0a9cd0b15cedf8b41
gdbstub: add multiprocess support to vCont packets

Add the gdb_first_attached_cpu() and gdb_next_attached_cpu() to iterate
over all the CPUs in currently attached processes.

Add the gdb_first_cpu_in_process() and gdb_next_cpu_in_process() to
iterate over CPUs of a given process.

Use them to add multiprocess extension support to vCont packets.

Signed-off-by: Luc Michel <luc.michel@greensocs.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20181207090135.7651-6-luc.michel@greensocs.com
[PMM: corrected checkpatch comment style nit]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
gdbstub.c