Re: [Qemu-devel] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets

2018-09-04 Thread Alistair Francis
On Sat, Sep 1, 2018 at 5:46 AM, Luc Michel wrote: > The gdb_get_cpu_pid() function does the PID lookup for the given CPU. It > checks if the CPU is in a QOM container named after the > GDB_CPU_GROUP_NAME macro. If found, it returns the correponding PID, > which is the group ID plus one (group IDs

[Qemu-devel] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets

2018-09-01 Thread Luc Michel
The gdb_get_cpu_pid() function does the PID lookup for the given CPU. It checks if the CPU is in a QOM container named after the GDB_CPU_GROUP_NAME macro. If found, it returns the correponding PID, which is the group ID plus one (group IDs start at 0, GDB PIDs at 1). When the CPU is not a child of