From: Jan Kiszka Date: Fri, 24 Jul 2015 16:52:31 +0000 (+0200) Subject: gdbstub: Set current CPU on interruptions X-Git-Tag: v2.4.0-rc3~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4;p=thirdparty%2Fqemu.git gdbstub: Set current CPU on interruptions gdb expects that the thread ID for c and g-class operations is set to the CPU we provide when reporting VM stop conditions. If the stub is still tuned to a different CPU, the wrong information is delivered to the gdb frontend. Signed-off-by: Jan Kiszka Signed-off-by: Michael Tokarev --- diff --git a/gdbstub.c b/gdbstub.c index 92b2f815847..ffe7e6efb28 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1285,6 +1285,7 @@ static void gdb_vm_state_change(void *opaque, int running, RunState state) ret = GDB_SIGNAL_UNKNOWN; break; } + gdb_set_stop_cpu(cpu); snprintf(buf, sizeof(buf), "T%02xthread:%02x;", ret, cpu_index(cpu)); send_packet: