Commit 45a4de25 authored by Max Filippov's avatar Max Filippov Committed by Peter Maydell
Browse files

gdbstub: allow killing QEMU via vKill command



With multiprocess extensions gdb uses 'vKill' packet instead of 'k' to
kill the inferior. Handle 'vKill' the same way 'k' was handled in the
presence of single process.

Fixes: 7cf48f67 ("gdbstub: add multiprocess support to
(f|s)ThreadInfo and ThreadExtraInfo")

Cc: Luc Michel <luc.michel@greensocs.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Reviewed-by: default avatarLuc Michel <luc.michel@greensocs.com>
Reviewed-by: default avatarKONRAD Frederic <frederic.konrad@adacore.com>
Tested-by: default avatarKONRAD Frederic <frederic.konrad@adacore.com>
Message-id: 20190130192403.13754-1-jcmvbkbc@gmail.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent f6a148fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,10 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)

            put_packet(s, buf);
            break;
        } else if (strncmp(p, "Kill;", 5) == 0) {
            /* Kill the target */
            error_report("QEMU: Terminated via GDBstub");
            exit(0);
        } else {
            goto unknown_command;
        }