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 | |
| parent | 801db5ecdac7575a1b0250243eea1767da553e50 (diff) | |
| download | focaccia-qemu-226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4.tar.gz focaccia-qemu-226d007dbd75ec8d0f12d0f9e1ce66caf55d49e4.zip | |
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>
| -rw-r--r-- | gdbstub.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbstub.c b/gdbstub.c index 92b2f81584..ffe7e6efb2 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: |