]> git.proxmox.com Git - mirror_qemu.git/blobdiff - gdbstub.c
gdbstub: allow killing QEMU via vKill command
[mirror_qemu.git] / gdbstub.c
index 3129b5c28424ecb35b163863869f5df321873964..a4be63f6eb474309e8e10693d6979c0eda413f10 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -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;
         }