Hi, This is a follow up v2 of the patches I posted yesterday. There are two new patches. The first is a simple name change to make the purpose of the function clearer. The second new patch now fixes the bug by making the thread-id consistent when reporting it via the gdbstub. It also reduces the size of CPUState by avoiding duplication of information already available in TaskStruct. The original fix is still in the series although its theoretical (but still correct) for my test case which now uses the correct thread-id.
Alex Bennée (4): gdbstub: modernise DEBUG_GDB gdbstub: rename cpu_index -> cpu_gdb_index qom/cpu: remove host_tid field gdbstub: don't fail on vCont;C04:0;c packets gdbstub.c | 117 ++++++++++++++++++++++++------------------------- include/exec/gdbstub.h | 9 ---- include/qom/cpu.h | 2 - linux-user/syscall.c | 1 - 4 files changed, 57 insertions(+), 72 deletions(-) -- 2.13.0