diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2015-07-24 18:52:31 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-07-27 22:46:16 +0300 |
commit | 226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4 (patch) | |
tree | f6292d9b00095620557c9c361e6c31caa3c8f07a /gdbstub.c | |
parent | 801db5ecdac7575a1b0250243eea1767da553e50 (diff) | |
download | qemu-226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4.zip qemu-226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4.tar.gz qemu-226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4.tar.bz2 |
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 <jan.kiszka@siemens.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: |